mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 07:54:22 +01:00
kernelRootParams: define agnostic commonkernelRootParams
Let's define agnostic commonkernelRootParams for all hypervisors, including qemu, firecracker, etc. for now, it has two scenarios, one for NVDIMM, one for virtio-blk. Fixes: #1642 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
This commit is contained in:
@@ -54,11 +54,8 @@ const (
|
||||
fcDiskPoolSize = 8
|
||||
)
|
||||
|
||||
var fcKernelParams = []Param{
|
||||
var fcKernelParams = append(commonVirtioblkKernelRootParams, []Param{
|
||||
// The boot source is the first partition of the first block device added
|
||||
{"root", "/dev/vda1"},
|
||||
{"rootflags", "data=ordered,errors=remount-ro ro"},
|
||||
{"rootfstype", "ext4"},
|
||||
{"pci", "off"},
|
||||
{"reboot", "k"},
|
||||
{"panic", "1"},
|
||||
@@ -70,7 +67,7 @@ var fcKernelParams = []Param{
|
||||
// Firecracker doesn't support ACPI
|
||||
// Fix kernel error "ACPI BIOS Error (bug)"
|
||||
{"acpi", "off"},
|
||||
}
|
||||
}...)
|
||||
|
||||
func (s vmmState) String() string {
|
||||
switch s {
|
||||
|
||||
Reference in New Issue
Block a user