diff options
author | Erich Eckner <git@eckner.net> | 2019-04-13 14:32:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-06-16 14:34:35 +0200 |
commit | cb54d96a05564b85a51e6e85f7aae3ab4400b96b (patch) | |
tree | bd6c51a2c1f04a1d7f8685c384a785e085c34c32 /arch-nspawn.in | |
parent | 53749adca4d86b814e984ba0642f3a35f39f8103 (diff) | |
download | devtools32-cb54d96a05564b85a51e6e85f7aae3ab4400b96b.tar.xz |
make arch-nspawn and archbuild compatible with pentium4
pentium4 is unknown to setarch - we must replace it by i686 if used as argument to setarch
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r-- | arch-nspawn.in | 7 |
1 files changed, 6 insertions, 1 deletions
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 \ |