diff options
author | Erich Eckner <git@eckner.net> | 2020-09-10 15:01:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-13 14:06:33 +0100 |
commit | 8d92f0e42ce5b2340fde8f561c9e84506c677650 (patch) | |
tree | a8532228073fb446e189faede124851318a2d34e | |
parent | f9e251ba0f71a5805923ff2f4cbb2a3e1a14a32e (diff) | |
download | devtools-8d92f0e42ce5b2340fde8f561c9e84506c677650.tar.xz |
arch-nspawn: unset "set_arch" with -s, not CARCH
-rw-r--r-- | arch-nspawn.in | 4 |
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 \ |