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-16 16:39:44 +0200
commitc922189a6067e5b9d7815b05cfea603bf085f5bb (patch)
tree358b0d1cfd8c3bab8f1301b494b09f4c3d1b310a
parent5718da5c231bf26bb5d58394ca115e2a53bbcb8e (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 7a7a274..b394477 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -92,6 +92,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"
}
# }}}