change the condition to use rc.statelite.ppc.redhat

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-07-19 08:22:48 +00:00
parent 05aa372968
commit 4fabfcb8a9

View File

@ -382,7 +382,7 @@ sub process_request {
# now stick the rc file in:
# this is actually a pre-rc file because it gets run before the node boots up all the way.
$verbose && $callback->({info => ["put the statelite rc file to $rootimg_dir/etc/init.d/"]});
if ($osver =~ m/^rh/ and $arch eq "ppc64") {
if ($osver =~ m/^rh[a-zA-Z]*5/ and $arch eq "ppc64") { # special case for redhat5.x on PPC64
system("cp -a $::XCATROOT/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat $rootimg_dir/etc/init.d/statelite");
}else {
system("cp -a $::XCATROOT/share/xcat/netboot/add-on/statelite/rc.statelite $rootimg_dir/etc/init.d/statelite");