Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-10 15:01:58 +0200
committerErich Eckner <git@eckner.net>2020-10-11 15:04:39 +0200
commitcf9f7ae6b126039e73bbd18c9b09020f6f15023b (patch)
tree4e377ec47ddd7580b16084122ce1790106453c88 /arch-nspawn.in
parent11e6a0ee537ba825476891da1b81ed943ef54401 (diff)
arch-nspawn: unset "set_arch" with -s, not CARCH
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index b9215a6..a069fa6 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -127,14 +127,14 @@ copy_hostconf
eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")"
-[[ -z $nosetarch ]] || unset CARCH
if [[ -f "@pkgdatadir@/setarch-aliases.d/${CARCH}" ]]; then
read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${CARCH}"
else
set_arch="${CARCH}"
fi
+[[ -z $nosetarch ]] || unset set_arch
-exec ${CARCH:+setarch "$set_arch"} systemd-nspawn -q \
+exec ${set_arch:+setarch "$set_arch"} systemd-nspawn -q \
-D "$working_dir" \
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
--register=no --keep-unit --as-pid2 \