mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 03:21:13 +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)]
|
#[serde(default)]
|
||||||
pub memory: MemoryConfig,
|
pub memory: MemoryConfig,
|
||||||
pub kernel: Option<KernelConfig>,
|
pub kernel: Option<KernelConfig>,
|
||||||
|
#[serde(default)]
|
||||||
pub initramfs: Option<InitramfsConfig>,
|
pub initramfs: Option<InitramfsConfig>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub cmdline: CmdlineConfig,
|
pub cmdline: CmdlineConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user