From c260640fd5920fa7e7a1bbfa0a8f27270a6bbbe5 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 9 Apr 2020 15:15:03 +0100 Subject: [PATCH] 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 --- vmm/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index a35da2d01..46d3cd40b 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -1160,6 +1160,7 @@ pub struct VmConfig { #[serde(default)] pub memory: MemoryConfig, pub kernel: Option, + #[serde(default)] pub initramfs: Option, #[serde(default)] pub cmdline: CmdlineConfig,