defect 3968: fixed the issue that for statelite on aix, the .statelite dir was not copied to shared_root spot from default spot

This commit is contained in:
daniceexi 2014-01-16 04:48:20 -05:00
parent f93a5eb28b
commit 9164cf83a3

View File

@ -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;
}
}
}
}