KubeOS/0009-fix-kbimg-exit-with-error-code-on-image-creation-fai.patch
Yuhang Wei a82fa3bcaa KubeOS: sync from upstream
Signed-off-by: Yuhang Wei <weiyuhang3@huawei.com>
2024-12-03 20:55:16 +08:00

27 lines
758 B
Diff

From 6760d1adc236ccbe2d5bb1ae6a12087a8eb82d90 Mon Sep 17 00:00:00 2001
From: Yuhang Wei <weiyuhang3@huawei.com>
Date: Thu, 28 Nov 2024 10:08:25 +0000
Subject: [PATCH 09/11] fix(kbimg): exit with error code on image creation
failure
Signed-off-by: Yuhang Wei <weiyuhang3@huawei.com>
---
KubeOS-Rust/kbimg/src/main.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/KubeOS-Rust/kbimg/src/main.rs b/KubeOS-Rust/kbimg/src/main.rs
index 3fc68cb1..8639f81f 100644
--- a/KubeOS-Rust/kbimg/src/main.rs
+++ b/KubeOS-Rust/kbimg/src/main.rs
@@ -130,6 +130,7 @@ fn main() {
},
Err(e) => {
error!("Failed to create image: {:?}", e);
+ exit(1);
},
}
}
--
2.39.5 (Apple Git-154)