From ac1144f4fd1f84d2892e9e74f3b309dc1126a857 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Mon, 29 Jun 2020 21:19:54 +0800 Subject: [PATCH] build_inf.sh: exclude image recipes from rm_work feature The anaconda image needs some files in the work dir of the target build image, if the rm_work feature is enabled, these files will be removed and the anaconda image will be incorrect, so exclude these image recipes from rm_work features to ensure the required files will not be removed. Issue-ID: INF-178 Signed-off-by: Jackie Huang Change-Id: I2ccd1b86b6cab14283e56291d4af07bc58de09b7 --- scripts/build_inf.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_inf.sh b/scripts/build_inf.sh index 2a5437a..acc529c 100755 --- a/scripts/build_inf.sh +++ b/scripts/build_inf.sh @@ -382,6 +382,7 @@ add_configs_stx_build () { if [ "${RM_WORK}" == "Yes" ]; then echo "INHERIT += 'rm_work'" | tee -a conf/local.conf + echo "RM_WORK_EXCLUDE += '${IMG_STX}'" | tee -a conf/local.conf fi @@ -462,6 +463,7 @@ add_configs_anaconda_build () { if [ "${RM_WORK}" == "Yes" ]; then echo "INHERIT += 'rm_work'" | tee -a conf/local.conf + echo "RM_WORK_EXCLUDE += '${IMG_ANACONDA}'" | tee -a conf/local.conf fi if [ "${EXTRA_CONF}" != "" ] && [ -f "${EXTRA_CONF}" ]; then -- 2.16.6