From ea3b3356ba12fe737691fac446f2487f27295978 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sun, 14 Aug 2005 13:50:29 +0000 Subject: [PATCH] add right devices in /dev NixOS now boots, but mounts the filesystem read-only, filesystem is dirty, etc. svn path=/nixu/trunk/; revision=3579 --- fill-disk.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fill-disk.sh b/fill-disk.sh index 7d1ce76d31bd..be9dc847c243 100755 --- a/fill-disk.sh +++ b/fill-disk.sh @@ -150,6 +150,9 @@ make_dir 00755 /var mknod $root/dev/null c 1 3 mknod -m 0600 $root/dev/console c 5 1 +mknod -m 0600 $root/dev/tty c 5 0 +mknod -m 0600 $root/dev/tty0 c 4 0 +mknod -m 0600 $root/dev/tty1 c 4 1 touch_file /etc/passwd touch_file /etc/shadow @@ -266,7 +269,7 @@ rm -f $root/etc/inittab echo "id:2:initdefault:" >> $root/etc/inittab echo "si::bootwait:$bootPath/bin/boot.sh" >> $root/etc/inittab echo "ht:06:wait:$bootPath/bin/halt.sh" >> $root/etc/inittab -echo "1:2345:respawn:$bootPath/bin/login.sh /dev/ttys/0" >> $root/etc/inittab +echo "1:2345:respawn:$bootPath/bin/login.sh /dev/tty1" >> $root/etc/inittab #echo "2:2345:respawn:$bootPath/bin/login.sh /dev/ttys/1" >> $root/etc/inittab echo setting up networking information...