mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
vmm: config: Use Default::default() value for initramfs field
This ensures that the field is filled with None when it is not specified as part of the deserialisation step. Fixes: #1015 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4617aefd60
commit
c260640fd5
@ -1160,6 +1160,7 @@ pub struct VmConfig {
|
||||
#[serde(default)]
|
||||
pub memory: MemoryConfig,
|
||||
pub kernel: Option<KernelConfig>,
|
||||
#[serde(default)]
|
||||
pub initramfs: Option<InitramfsConfig>,
|
||||
#[serde(default)]
|
||||
pub cmdline: CmdlineConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user