Merge pull request #1301 from anderbubble/FixOverlayAutobuild

Ensure autobuilt overlays include contextual overlay contents.
This commit is contained in:
Christian Goll
2024-07-11 10:45:11 +02:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -38,6 +38,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Replace slice in templates with sprig substr. #1093
- Fix an invalid format issue for the GitHub nightly build action. #1258
## v4.5.6, unreleased
### Fixed
- Ensure autobuilt overlays include contextual overlay contents. #1296
## v4.5.5, 2024-07-05
### Fixed

View File

@@ -63,7 +63,11 @@ func getOverlayFile(
}
if build {
err = overlay.BuildOverlay(n, context, stage_overlays)
if len(stage_overlays) > 0 {
err = overlay.BuildSpecificOverlays([]node.NodeInfo{n}, stage_overlays)
} else {
err = overlay.BuildAllOverlays([]node.NodeInfo{n})
}
if err != nil {
wwlog.Error("Failed to build overlay: %s, %s, %s\n%s",
n.Id.Get(), stage_overlays, stage_file, err)