From ae310c716e0dd99da73a799c17916b1597d230de Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 17 Feb 2011 07:13:23 +0000 Subject: [PATCH] system x support for SLES 11 SP1 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8870 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/sles/genimage | 79 +++++++++++--------- 1 file changed, 43 insertions(+), 36 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index a07794d2a..36cd8f79f 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -314,6 +314,20 @@ unless ($onlyinitrd) { system "mknod $rootimg_dir/dev/null c 1 3"; #that's neccessary for SLES11 } + unless ( -e "$rootimg_dir/dev/random") { + system "mknod $rootimg_dir/dev/random c 1 8"; #that's neccessary for SLES11 + } + unless ( -e "$rootimg_dir/dev/urandom") { + system "mknod $rootimg_dir/dev/urandom c 1 9"; #that's neccessary for SLES11 + } + + for (my $i = 0; $i <= 12; $i++) + { + unless ( -e "$rootimg_dir/dev/tty$i") { + system "mknod $rootimg_dir/dev/tty$i c 4 $i"; #that's neccessary for SLES11 + } + } + open($fd,">>","$rootimg_dir/etc/fstab"); # TODO: is it necessary? print $fd "#Dummy fstab for rpm postscripts to see\n"; close($fd); @@ -860,6 +874,16 @@ EOS1 print $inifile "mknod /dev/ttyS2 c 4 66\n"; print $inifile "mknod /dev/ttyS3 c 4 67\n"; + # Start udev + print $inifile < /dev/null && export DEBUG=1\n"; } - # Start udev on s390x - if ($arch eq "s390x") { - print $inifile <