1
0
Fork 0

fix: do not fail if no prebuilt container

timestamps
dump_stack() 2024-02-21 15:05:59 +00:00
parent d317769a64
commit 059ca6dc93
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB
1 changed files with 5 additions and 4 deletions

View File

@ -208,11 +208,12 @@ func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
if cmd.ContainerCache {
path := cache.ContainerURL(c.Name())
log.Debug().Msgf("import container %v from %v",
c.Name(), path)
err = container.Import(path, c.Name())
if err != nil || cmd.shutdown {
return
if err != nil {
err = nil
} else {
log.Info().Msgf("container %s -> %s",
path, c.Name())
}
}