index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-04-13 14:32:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-12 08:09:01 +0100 |
commit | b3feafe61ba152aa0d9ae0b035500bff17b0c79f (patch) | |
tree | b38e52eb077d79d5a8aa7aa24aca936a2ab4224b /arch-nspawn.in | |
parent | d8853ad4ac0b0915ed98ed7cf86bfdb332cc185f (diff) |
-rw-r--r-- | arch-nspawn.in | 7 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index 08f24b7..5d8b3d1 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -126,8 +126,13 @@ copy_hostconf eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")" [[ -z $nosetarch ]] || unset CARCH +if [[ "${CARCH}" = 'pentium4' ]]; then + set_arch='i686' +else + set_arch="${CARCH}" +fi -exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \ +exec ${CARCH:+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 \ |