diff --git a/citadel-image/src/config.rs b/citadel-image/src/config.rs index 3569332..2b2d335 100644 --- a/citadel-image/src/config.rs +++ b/citadel-image/src/config.rs @@ -14,6 +14,8 @@ pub struct BuildConfig { version: usize, timestamp: String, source: String, + #[serde(default)] + compress: bool, #[serde(rename = "kernel-version")] kernel_version: Option, #[serde(rename = "kernel-id")] @@ -110,4 +112,8 @@ impl BuildConfig { pub fn image_type(&self) -> &str { &self.image_type } + + pub fn compress(&self) -> bool { + self.compress + } }