summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 08ed2fa..7f9b344 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -107,6 +107,11 @@ copy_hostconf
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
+if [[ "$CARCH" = i*86 ]]; then
+ host_mirror='https://mirror.archlinux32.org/$arch/$repo'
+ copy_hostconf
+fi
+
[[ -z $nosetarch ]] || unset CARCH
exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \