From 7409a45d683878e597ad15276280c114b3d13509 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 13 Apr 2019 14:32:36 +0200 Subject: 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 --- archbuild.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'archbuild.in') diff --git a/archbuild.in b/archbuild.in index a34f1cd..4e16e9e 100644 --- a/archbuild.in +++ b/archbuild.in @@ -17,6 +17,11 @@ else repo=${tag%-*} arch=${tag##*-} fi +if [[ "${arch}" == 'pentium4' ]]; then + set_arch='i686' +else + set_arch="${arch}" +fi chroots='/var/lib/archbuild' clean_first=false @@ -77,7 +82,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then rm -rf --one-file-system "${chroots}/${repo}-${arch}" mkdir -m755 -p "${chroots}/${repo}-${arch}" - setarch "${arch}" mkarchroot \ + setarch "${set_arch}" mkarchroot \ -C "${pacman_config}" \ -M "${makepkg_config}" \ ${cache_dir} \ -- cgit v1.2.3-70-g09d2