Support container import of chroot directory

This commit is contained in:
Gregory Kurtzer
2021-02-24 21:01:56 -08:00
parent 5a07ac2e14
commit 6357e31438
3 changed files with 50 additions and 15 deletions

View File

@@ -38,12 +38,12 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
fmt.Printf("Rebuilding container...\n")
output, err := container.Build(containerName, false)
err := container.Build(containerName, false)
if err != nil {
wwlog.Printf(wwlog.ERROR, "Could not build container %s: %s\n", containerName, err)
os.Exit(1)
} else {
fmt.Printf("%s\n", output)
//fmt.Printf("%s\n", output)
}
return nil