mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-02 03:48:07 +00:00
infrakit: Use the moby tool naming convention to select moby builds
the `moby` tool uses a prefix for the build output. Specify the prefix (and optional path) in the `Moby` property in the JSON instead of assuming a different path for each initrd/kernel. Also, adopt the new name for the kernel image (vmlinuz64 -> <prefix>-bzImage). This should make it simpler to boot up hyperkit with Moby images build from by the moby tool. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
@@ -242,8 +242,8 @@ const hyperkitArgs = "-A -u -F {{.VMLocation}}/hyperkit.pid " +
|
||||
"-s 2:0,virtio-vpnkit,path={{.VPNKitSock}} " +
|
||||
"-l com1,autopty={{.VMLocation}}/tty,log={{.VMLocation}}/console-ring"
|
||||
const hyperkitKernArgs = "kexec," +
|
||||
"{{.Properties.Moby}}/vmlinuz64," +
|
||||
"{{.Properties.Moby}}/initrd.img," +
|
||||
"{{.Properties.Moby}}-bzImage," +
|
||||
"{{.Properties.Moby}}-initrd.img," +
|
||||
"earlyprintk=serial console=ttyS0 panic=1 vsyscall=emulate page_poison=1 ntp=gateway"
|
||||
|
||||
func (v hyperkitPlugin) execHyperKit(params map[string]interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user