use wwctl to re-build provision overlays, update to pass overlaynames

This commit is contained in:
Carter Dodd
2022-06-04 11:14:48 -05:00
parent 7caabc439d
commit fc8d3863d8
7 changed files with 83 additions and 68 deletions

View File

@@ -654,3 +654,15 @@ func BuildFsImage(
return nil
}
/*******************************************************************************
Runs wwctl command
*/
func RunWWCTL(args ...string) (out string, err error) {
proc := exec.Command("wwctl", args...)
out, err := proc.CombinedOutput()
return out, err
}