From: Daan De Meyer Date: Sat, 23 Nov 2024 21:29:56 +0000 (+0100) Subject: mkosi: Use bash to execute command -v X-Git-Tag: v257-rc3~36^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=506403f5612cfab8477573b040fe690737d5deb3;p=thirdparty%2Fsystemd.git mkosi: Use bash to execute command -v command is only an executable on Fedora due to a downstream patch, on Arch for example it's only a builtin so we have to use bash to execute command -v to get proper results on Arch. --- diff --git a/mkosi.sanitizers/mkosi.postinst b/mkosi.sanitizers/mkosi.postinst index 593a8f99aa1..ae60ab65199 100755 --- a/mkosi.sanitizers/mkosi.postinst +++ b/mkosi.sanitizers/mkosi.postinst @@ -93,7 +93,7 @@ wrap=( ) for bin in "${wrap[@]}"; do - if ! mkosi-chroot command -v "$bin" >/dev/null; then + if ! mkosi-chroot bash -c "command -v $bin" >/dev/null; then continue fi @@ -103,7 +103,7 @@ for bin in "${wrap[@]}"; do enable_lsan=0 fi - target="$(mkosi-chroot command -v "$bin")" + target="$(mkosi-chroot bash -c "command -v $bin")" mv "$BUILDROOT/$target" "$BUILDROOT/$target.orig"