mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 03:34:58 +00:00
Allow no kernel to be specified
This is needed for non LinuxKit use cases. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
a1b24b4de2
commit
e25033f70d
@ -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:")
|
||||
|
Loading…
Reference in New Issue
Block a user