Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-18 11:22:59 +0200
committerErich Eckner <git@eckner.net>2018-05-31 16:09:42 +0200
commitd490d1c32839308782b15d988cb742419a39a910 (patch)
tree7260d0754e4671f421d90676b13a89a61dea79bb
parent7bb82eba0b5be92b3154372040f5426e0e15ee41 (diff)
force correct architecture in pacman
-rw-r--r--arch-nspawn.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index b9c846e..51f3e29 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -93,6 +93,7 @@ copy_hostconf () {
done
sed -r "s|^#?\\s*CacheDir.+|CacheDir = ${cache_dirs[*]}|g" -i "$working_dir/etc/pacman.conf"
+ sed -i '/^Architecture = /s| auto$| '"$CARCH|" "$working_dir/etc/pacman.conf"
}
# }}}