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-08-20 09:00:45 +0200 |
commit | bc4b38164eaecced47dc7c3896a8af7a6cbe1eae (patch) | |
tree | a1a5ede2805d256384e1a5216330590066a27672 /arch-nspawn.in | |
parent | 85017d677aab063d6f9080276caf879936ca3cfe (diff) |
-rw-r--r-- | arch-nspawn.in | 7 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index 3670ba9..7dcff7b 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -131,8 +131,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 \ |