diff options
author | Erich Eckner <git@eckner.net> | 2019-04-13 14:32:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-22 11:18:40 +0200 |
commit | 4e9fba2f676acf79879673a7864a8ec692f489b9 (patch) | |
tree | fba9bb392d1b4812c14d409107942381824c0c61 /arch-nspawn.in | |
parent | 7027e90c3283fedd42cca885b092e68a3cc15950 (diff) | |
download | devtools32-4e9fba2f676acf79879673a7864a8ec692f489b9.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 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 \ |