From 1dcec3c4a38dce44590bababc14acc48d2372d6d Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 16 Jun 2020 10:44:27 +0800 Subject: [PATCH] stx-anaconda-image.bbclass: change skip to warning In dry-run mode, the kickstart file will not be generated, the existence check will always fail, so change the skip to warning to allow the dry-run can succeed without generated kickstart file. Issue-ID: INF-163 Signed-off-by: Jackie Huang Change-Id: I08e4fb494d8b1a03f51d5b3bb71c2a85f02ff9a6 --- meta-stx/classes/stx-anaconda-image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-stx/classes/stx-anaconda-image.bbclass b/meta-stx/classes/stx-anaconda-image.bbclass index acf371d..6114739 100644 --- a/meta-stx/classes/stx-anaconda-image.bbclass +++ b/meta-stx/classes/stx-anaconda-image.bbclass @@ -392,7 +392,7 @@ python __anonymous() { raise bb.parse.SkipPackage("The count of INSTALLER_TARGET_BUILD and KICKSTART_FILE not match!") for kickstart_file in kickstart_files.split(): if not os.path.exists(kickstart_file): - raise bb.parse.SkipPackage("The kickstart file %s in KICKSTART_FILE doesn't exist!" % kickstart_file) + bb.warn("The kickstart file %s in KICKSTART_FILE doesn't exist!" % kickstart_file) } -- 2.16.6