From 9125d3af50ba58b903f31e67d1d24c04c32a7f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 10 Jun 2012 22:37:20 +0000 Subject: [PATCH] Adding creation of /dev/ptmx in stage-2, in case stage-1 did not run. Upstart requires /dev/ptmx since its 1.4, and will lock up in case of it missing. I was hitting this in the fuloong, where I don't use the nixos initrd. svn path=/nixos/trunk/; revision=34429 --- modules/system/boot/stage-2-init.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index bd48f463dcd6..f02149ced750 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -46,6 +46,7 @@ if [ ! -e /proc/1 ]; then mknod -m 0666 /dev/null c 1 3 mknod -m 0644 /dev/urandom c 1 9 # needed for passwd mknod -m 0644 /dev/console c 5 1 + mknod -m 0644 /dev/ptmx c 5 2 # required by upstart mknod -m 0644 /dev/tty1 c 4 1 mknod -m 0644 /dev/ttyS0 c 4 64 mknod -m 0644 /dev/ttyS1 c 4 65