From 9164cf83a3ef25ef6633a20a5587dc2b9c3c776d Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 16 Jan 2014 04:48:20 -0500 Subject: [PATCH] defect 3968: fixed the issue that for statelite on aix, the .statelite dir was not copied to shared_root spot from default spot --- perl-xCAT/xCAT/InstUtils.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index ec1748b11..8fcef91fa 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -1353,6 +1353,16 @@ sub dolitesetup return 1; } + # also copy $instrootloc/.statelite contents + $ccmd = "/usr/bin/cp -p -r $instrootloc/.statelite $SRloc"; + $out = xCAT::Utils->runcmd("$ccmd", -1); + if ($::RUNCMD_RC != 0) + { + my $rsp; + push @{$rsp->{data}}, "Could not copy $instrootloc/.statelite to $SRloc."; + xCAT::MsgUtils->message("E", $rsp, $callback); + return 1; + } } } }