From eea474dea027925587182e7c1f7cae92b88caa57 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 4 Feb 2010 16:32:15 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/rh/genimage | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 4ca404bcf..a4c376cb2 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -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"); }