From 7722f97afa0d27379a504435f5d87b6940b88a32 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Wed, 14 Jan 2015 03:24:14 -0500 Subject: [PATCH] fix bug 4491: Switch Ubuntu diskless dir /dev mount type to devtmpfs --- .../share/xcat/netboot/ubuntu/genimage | 67 ++++++++++--------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index 2d30235e4..a6b330a94 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -992,45 +992,46 @@ EOS1 print $inifile "busybox mount -t proc /proc /proc\n"; print $inifile "busybox --install\n"; print $inifile "mount -t sysfs /sys /sys\n"; - print $inifile "mount -o mode=0755 -t tmpfs /dev /dev\n"; + #print $inifile "mount -o mode=0755 -t tmpfs /dev /dev\n"; + print $inifile "mount -t devtmpfs /dev /dev\n"; print $inifile "mkdir /dev/pts\n"; print $inifile "mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts\n"; print $inifile "mkdir /run\n"; print $inifile "mount -t tmpfs -o \"nosuid,size=20%,mode=0755\" tmpfs /run\n"; print $inifile "mkdir /dev/shm\n"; print $inifile "mkdir /dev/mapper\n"; - print $inifile "mknod /dev/null c 1 3\n"; - print $inifile "mknod /dev/zero c 1 5\n"; - print $inifile "mknod /dev/systty c 4 0\n"; - print $inifile "mknod /dev/tty c 5 0\n"; - print $inifile "mknod /dev/console c 5 1\n"; - print $inifile "mknod /dev/ptmx c 5 2\n"; - print $inifile "mknod /dev/rtc c 10 135\n"; - print $inifile "mknod /dev/tty0 c 4 0\n"; - print $inifile "mknod /dev/tty1 c 4 1\n"; - print $inifile "mknod /dev/tty2 c 4 2\n"; - print $inifile "mknod /dev/tty3 c 4 3\n"; - print $inifile "mknod /dev/tty4 c 4 4\n"; - print $inifile "mknod /dev/tty5 c 4 5\n"; - print $inifile "mknod /dev/tty6 c 4 6\n"; - print $inifile "mknod /dev/tty7 c 4 7\n"; - print $inifile "mknod /dev/tty8 c 4 8\n"; - print $inifile "mknod /dev/tty9 c 4 9\n"; - print $inifile "mknod /dev/tty10 c 4 10\n"; - print $inifile "mknod /dev/tty11 c 4 11\n"; - print $inifile "mknod /dev/tty12 c 4 12\n"; - print $inifile "mknod /dev/ttyS0 c 4 64\n"; - print $inifile "mknod /dev/ttyS1 c 4 65\n"; - print $inifile "mknod /dev/ttyS2 c 4 66\n"; - print $inifile "mknod /dev/ttyS3 c 4 67\n"; - print $inifile "mknod /dev/hvc0 c 229 0\n"; - print $inifile "mknod /dev/hvc1 c 229 1\n"; - print $inifile "mknod /dev/hvc2 c 229 2\n"; - print $inifile "mknod /dev/hvc3 c 229 3\n"; - print $inifile "mknod /dev/hvc4 c 229 4\n"; - print $inifile "mknod /dev/hvc5 c 229 5\n"; - print $inifile "mknod /dev/hvc6 c 229 6\n"; - print $inifile "mknod /dev/hvc7 c 229 7\n"; + #print $inifile "mknod /dev/null c 1 3\n"; + #print $inifile "mknod /dev/zero c 1 5\n"; + #print $inifile "mknod /dev/systty c 4 0\n"; + #print $inifile "mknod /dev/tty c 5 0\n"; + #print $inifile "mknod /dev/console c 5 1\n"; + #print $inifile "mknod /dev/ptmx c 5 2\n"; + #print $inifile "mknod /dev/rtc c 10 135\n"; + #print $inifile "mknod /dev/tty0 c 4 0\n"; + #print $inifile "mknod /dev/tty1 c 4 1\n"; + #print $inifile "mknod /dev/tty2 c 4 2\n"; + #print $inifile "mknod /dev/tty3 c 4 3\n"; + #print $inifile "mknod /dev/tty4 c 4 4\n"; + #print $inifile "mknod /dev/tty5 c 4 5\n"; + #print $inifile "mknod /dev/tty6 c 4 6\n"; + #print $inifile "mknod /dev/tty7 c 4 7\n"; + #print $inifile "mknod /dev/tty8 c 4 8\n"; + #print $inifile "mknod /dev/tty9 c 4 9\n"; + #print $inifile "mknod /dev/tty10 c 4 10\n"; + #print $inifile "mknod /dev/tty11 c 4 11\n"; + #print $inifile "mknod /dev/tty12 c 4 12\n"; + #print $inifile "mknod /dev/ttyS0 c 4 64\n"; + #print $inifile "mknod /dev/ttyS1 c 4 65\n"; + #print $inifile "mknod /dev/ttyS2 c 4 66\n"; + #print $inifile "mknod /dev/ttyS3 c 4 67\n"; + #print $inifile "mknod /dev/hvc0 c 229 0\n"; + #print $inifile "mknod /dev/hvc1 c 229 1\n"; + #print $inifile "mknod /dev/hvc2 c 229 2\n"; + #print $inifile "mknod /dev/hvc3 c 229 3\n"; + #print $inifile "mknod /dev/hvc4 c 229 4\n"; + #print $inifile "mknod /dev/hvc5 c 229 5\n"; + #print $inifile "mknod /dev/hvc6 c 229 6\n"; + #print $inifile "mknod /dev/hvc7 c 229 7\n"; foreach (@ndrivers) { print $inifile "insmod /lib/$_\n";