Cleaned init subsystem, Ipmi, SELinux, added Root option, and fixed defaults

This commit is contained in:
Gregory Kurtzer
2020-12-20 22:41:02 -08:00
parent a53a040b36
commit e5be3d8182
14 changed files with 128 additions and 55 deletions

View File

@@ -108,6 +108,16 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
os.Exit(1)
}
}
if SetRoot != "" {
wwlog.Printf(wwlog.VERBOSE, "Profile: %s, Setting root to: %s\n", p.Id, SetRoot)
p.Root.Set(SetRoot)
err := nodeDB.ProfileUpdate(p)
if err != nil {
wwlog.Printf(wwlog.ERROR, "%s\n", err)
os.Exit(1)
}
}
if SetKernel != "" {
wwlog.Printf(wwlog.VERBOSE, "Profile: %s, Setting Kernel version to: %s\n", p.Id, SetKernel)