add postscript support for redhat statelite mode

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-02-04 16:32:15 +00:00
parent 97edcc23e4
commit eea474dea0

View File

@ -1053,6 +1053,12 @@ sub generic_post { #This function is meant to leave the image in a state approxi
close($cfgfile);
chmod(0755,"$rootimg_dir/etc/rc3.d/S60gettyset");
#link("$rootimg_dir/sbin/init","$rootimg_dir/init");
#add postscript support for redhat
if($mode eq "statelite") {
print $cfgfile "/opt/xcat/xcatdsklspost 4\n";
} else {
print $cfgfile "/opt/xcat/xcatdsklspost\n";
}
rename(<$rootimg_dir/boot/vmlinuz*>,"$destdir/kernel"); }