From 7f91df64928dc2f9b2bdb93ff417c89f9af8ea0c Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sun, 18 Jun 2023 21:39:45 +0200 Subject: [PATCH] kas-container: Purge tmp* on clean OpenEmbedded/Yocto expands TMPDIR by TCLIBCAPPEND. That break our - granted - simplistic clean operation which assumes TMPDIR to be "${TOPDIR}/tmp". Relax it a bit. This is still safe as we work on the generally separate build dir. An alternative to this would be calling kas shell with a concrete configuration and ask for the actual TMPDIR and also DL_DIR while at it. Probably doable, but it would require passing of a config file on each global clean operation. Isar layers are not expected expand TMPDIR, so keep things as they are there. Signed-off-by: Jan Kiszka --- kas-container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kas-container b/kas-container index 0d22651..d64d356 100755 --- a/kas-container +++ b/kas-container @@ -121,7 +121,7 @@ run_clean() { ${KAS_CONTAINER_IMAGE} \ sudo rm -rf tmp else - trace rm -rf "${KAS_BUILD_DIR}/tmp" + trace rm -rf "${KAS_BUILD_DIR}"/tmp* fi if [ "$1" != "clean" ]; then