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 11:17:32 +0200 |
commit | 0d4552bfd3b20f1b484b2e87e60ed78be5cd9815 (patch) | |
tree | 5f686a759023fea788eb2b233f5dae4b494db340 /arch-nspawn.in | |
parent | d0efd9fed6065e2149d8b0ff9d827d72de4d8b1a (diff) |
-rw-r--r-- | arch-nspawn.in | 7 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index a552dea..f0899c0 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 \ |