From 41179a720d642c5881089ec9ff19c0a41a028de7 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Tue, 15 Jan 2019 09:37:40 -0500 Subject: [PATCH] Add an option to choose to build a compressed image or not --- citadel-image/src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 + } }