From 79683084e5e482da39ab7f7920794c4be2ad2389 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 1 Dec 2011 01:37:48 +0000 Subject: [PATCH] defect 3441169: Using the rc.statelite.ppc.redhat to replace rc.statelite for rh5,6 ppc64 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/statelite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/statelite.pm b/xCAT-server/lib/xcat/plugins/statelite.pm index 9849060ed..94665a1a0 100644 --- a/xCAT-server/lib/xcat/plugins/statelite.pm +++ b/xCAT-server/lib/xcat/plugins/statelite.pm @@ -426,7 +426,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[a-zA-Z]*5/ and $arch eq "ppc64") { # special case for redhat5.x on PPC64 + if ($osver =~ m/^rh[a-zA-Z]*[56]/ and $arch eq "ppc64") { # special case for redhat5/6.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");