Add an option to choose to build a compressed image or not

This commit is contained in:
Bruce Leidl 2019-01-15 09:37:40 -05:00
parent 6e5ec2ec1b
commit 41179a720d

View File

@ -14,6 +14,8 @@ pub struct BuildConfig {
version: usize,
timestamp: String,
source: String,
#[serde(default)]
compress: bool,
#[serde(rename = "kernel-version")]
kernel_version: Option<String>,
#[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
}
}