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-04-13 14:32:36 +0200 |
commit | 15fd0a4b63103eb9c00346b8d233f9e6bc8122d3 (patch) | |
tree | a199eccd5946e005085a2fa46820ea177b9f5504 /arch-nspawn.in | |
parent | 51d72adfc5be558c295b313927fa089011827c0c (diff) |
-rw-r--r-- | arch-nspawn.in | 7 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index f217b1e..f017a66 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -118,8 +118,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 \ |