mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 19:54:38 +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)
|
log.Fatalf("Could not pull image %s: %v", m.Kernel.Image, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if m.Kernel.Image != "" {
|
||||||
// get kernel and initrd tarball from container
|
// get kernel and initrd tarball from container
|
||||||
log.Infof("Extract kernel image: %s", m.Kernel.Image)
|
log.Infof("Extract kernel image: %s", m.Kernel.Image)
|
||||||
const (
|
const (
|
||||||
@ -155,6 +156,7 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
|
|||||||
}
|
}
|
||||||
initrdAppend(iw, kernel)
|
initrdAppend(iw, kernel)
|
||||||
initrdAppend(iw, ktar)
|
initrdAppend(iw, ktar)
|
||||||
|
}
|
||||||
|
|
||||||
// convert init images to tarballs
|
// convert init images to tarballs
|
||||||
log.Infof("Add init containers:")
|
log.Infof("Add init containers:")
|
||||||
|
Loading…
Reference in New Issue
Block a user