mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-24 05:31:31 +00:00
vendor: update govmm package
To include support for qemu initrd config. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
8
vendor/github.com/intel/govmm/qemu/qemu.go
generated
vendored
8
vendor/github.com/intel/govmm/qemu/qemu.go
generated
vendored
@@ -1117,6 +1117,9 @@ type Kernel struct {
|
||||
// Path is the guest kernel path on the host filesystem.
|
||||
Path string
|
||||
|
||||
// InitrdPath is the guest initrd path on the host filesystem.
|
||||
InitrdPath string
|
||||
|
||||
// Params is the kernel parameters string.
|
||||
Params string
|
||||
}
|
||||
@@ -1395,6 +1398,11 @@ func (config *Config) appendKernel() {
|
||||
config.qemuParams = append(config.qemuParams, "-kernel")
|
||||
config.qemuParams = append(config.qemuParams, config.Kernel.Path)
|
||||
|
||||
if config.Kernel.InitrdPath != "" {
|
||||
config.qemuParams = append(config.qemuParams, "-initrd")
|
||||
config.qemuParams = append(config.qemuParams, config.Kernel.InitrdPath)
|
||||
}
|
||||
|
||||
if config.Kernel.Params != "" {
|
||||
config.qemuParams = append(config.qemuParams, "-append")
|
||||
config.qemuParams = append(config.qemuParams, config.Kernel.Params)
|
||||
|
||||
Reference in New Issue
Block a user