warewulf.conf option disable host overlays

This commit is contained in:
Christian Goll
2022-03-30 17:23:38 +02:00
parent 853cb5c6bc
commit 2d2fb13423
5 changed files with 19 additions and 8 deletions

View File

@@ -27,9 +27,11 @@ func NFS() error {
if err != nil {
fmt.Println(err)
}
err = overlay.BuildHostOverlay()
if err != nil {
wwlog.Printf(wwlog.WARN, "host overlay could not be built: %s\n", err)
if controller.Warewulf.EnableHostOverlay {
err = overlay.BuildHostOverlay()
if err != nil {
wwlog.Printf(wwlog.WARN, "host overlay could not be built: %s\n", err)
}
}
fmt.Printf("Enabling and restarting the NFS services\n")
if controller.Nfs.SystemdName == "" {