summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d/10-opensuse
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-09 20:02:47 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-07-10 10:08:20 +0200
commit73b3179a5375d3fe7a58b5686446dddd3a14a734 (patch)
tree3bf783fdeb318a710ca30974cd4cc360d1863116 /mkosi.conf.d/10-opensuse
parentman: fix typo in unit options section (diff)
downloadsystemd-73b3179a5375d3fe7a58b5686446dddd3a14a734.tar.xz
systemd-73b3179a5375d3fe7a58b5686446dddd3a14a734.zip
mkosi: Check for configured build directory if WIPE=1
Otherwise trying to use --wipe might fail if the build directory has not been configured but is not empty either.
Diffstat (limited to 'mkosi.conf.d/10-opensuse')
-rwxr-xr-xmkosi.conf.d/10-opensuse/mkosi.build.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.conf.d/10-opensuse/mkosi.build.chroot b/mkosi.conf.d/10-opensuse/mkosi.build.chroot
index 67481d0b10..286fd582a6 100755
--- a/mkosi.conf.d/10-opensuse/mkosi.build.chroot
+++ b/mkosi.conf.d/10-opensuse/mkosi.build.chroot
@@ -63,7 +63,7 @@ if [[ -z "${MKOSI_LDFLAGS// }" ]]; then
fi
MKOSI_MESON_OPTIONS="-D mode=developer -D b_sanitize=${SANITIZERS:-none}"
-if ((WIPE)); then
+if ((WIPE)) && [[ -d "$BUILDDIR/meson-private" ]]; then
MKOSI_MESON_OPTIONS="$MKOSI_MESON_OPTIONS --wipe"
fi