Remove Chdir from overlay.BuildOverlayIndir

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-12-20 12:06:03 -07:00
parent 9dd1ca0d53
commit e3680438a6
4 changed files with 513 additions and 350 deletions

View File

@@ -45,9 +45,7 @@ func sendFile(
}
func getOverlayFile(n node.Node, context string, stage_overlays []string, autobuild bool) (stage_file string, err error) {
stage_file = overlay.OverlayImage(n.Id(), context, stage_overlays)
err = nil
build := !util.IsFile(stage_file)
wwlog.Verbose("stage file: %s", stage_file)
if !build && autobuild {