diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index ee3ac4d15..61759c005 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -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