Merge pull request #673 from mslacken/Fix523

build host overlay only if requested
This commit is contained in:
Christian Goll
2023-02-24 15:11:31 +01:00
committed by GitHub

View File

@@ -78,7 +78,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
if BuildHost || (!BuildHost && !BuildNodes && len(args) == 0 && controller.Warewulf.EnableHostOverlay) {
if BuildHost && controller.Warewulf.EnableHostOverlay {
err := overlay.BuildHostOverlay()
if err != nil {
wwlog.Warn("host overlay could not be built: %s", err)