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-29 08:52:50 +0200
commit8150a5767e7ed98e92e7404cba0b0c365b548c61 (patch)
tree73e67d246573f5f63640fda5f7569315f2ed35f6
parent4e87cea4bede78a610aad76c10346811b4095495 (diff)
downloaddevtools32-8150a5767e7ed98e92e7404cba0b0c365b548c61.tar.xz
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"
}
# }}}