Allow no kernel to be specified
This is needed for non LinuxKit use cases.
@@ -136,6 +136,7 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
log.Fatalf("Could not pull image %s: %v", m.Kernel.Image, err)
}
}
+ if m.Kernel.Image != "" {
// get kernel and initrd tarball from container
log.Infof("Extract kernel image: %s", m.Kernel.Image)
const (
@@ -155,6 +156,7 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
}
initrdAppend(iw, kernel)
initrdAppend(iw, ktar)
+ }
// convert init images to tarballs
log.Infof("Add init containers:")
