mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
fix bug 4491: Switch Ubuntu diskless dir /dev mount type to devtmpfs
This commit is contained in:
parent
f7b5607abe
commit
7722f97afa
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user