From 066a5c69947d8648f531eb09c89596ae0f40787a Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Sun, 27 Sep 2020 10:23:43 +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 that the dry-run can succeed without
generated kickstart file.

Story: 2008204
Task: 40988

Change-Id: I32eb8a688498713d03c915b82611cea8fcb493cf
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 meta-stx-distro/classes/stx-anaconda-image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-stx-distro/classes/stx-anaconda-image.bbclass b/meta-stx-distro/classes/stx-anaconda-image.bbclass
index 2d62212..4a1e68d 100644
--- a/meta-stx-distro/classes/stx-anaconda-image.bbclass
+++ b/meta-stx-distro/classes/stx-anaconda-image.bbclass
@@ -378,7 +378,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)
 
 }