add policy updates for statelite on update install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4394e4bb95
commit
cd3afa2947
@ -1105,6 +1105,22 @@ sub initDB
|
||||
{
|
||||
verbose("Updated policy definition for MN.");
|
||||
}
|
||||
# add statelite policies on update for Linux
|
||||
if ($::osname eq 'Linux') {
|
||||
$chtabcmds =
|
||||
"$::XCATROOT/sbin/chtab priority=4.7 policy.commands=litefile policy.rule=allow;";
|
||||
$chtabcmds .=
|
||||
"$::XCATROOT/sbin/chtab priority=4.8 policy.commands=litetree policy.rule=allow;";
|
||||
my $outref = xCAT::Utils->runcmd("$chtabcmds", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message('E', "Could not create statelite policy.");
|
||||
}
|
||||
else
|
||||
{
|
||||
verbose("Created statelite policy definition.");
|
||||
}
|
||||
}
|
||||
|
||||
# check to see if otherpkgs is in the postscripts table
|
||||
# if it is do not change it, otherwise put in postbootscripts
|
||||
|
Loading…
Reference in New Issue
Block a user