2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

fix defect #4741 [fvt]2.10:Filesystem wrong for sles11.4 x86_64 diskless provision

This commit is contained in:
immarvin
2015-07-16 05:18:29 -04:00
parent 5e0c59b620
commit 77f5db2375

View File

@@ -1629,6 +1629,12 @@ EOMS
print $inifile "cp /etc/resolv.conf \$NEWROOT/etc/\n";
print $inifile "cp /etc/HOSTNAME \$NEWROOT/etc/\n";
print $inifile "mknod \$NEWROOT/dev/console c 5 1\n";
#details, see defect https://sourceforge.net/p/xcat/bugs/4741/
if($osver =~ /sles11.4/i){
print $inifile "export ROOTFS_BLKDEV=\"\/\"\n";
}
print $inifile "exec /lib/mkinitrd/bin/run-init -c /dev/console \$NEWROOT /sbin/init\n";
close($inifile);
open($inifile,">"."/tmp/xcatinitrd.$$/bin/netstart");