diff options
author | Erich Eckner <git@eckner.net> | 2019-04-01 10:54:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-13 09:21:45 +0200 |
commit | e9cf43913af4a58b126b378518049dee98eb4e7f (patch) | |
tree | d080da70836791f9958f5e4b740c8fcaf4f6b517 /arch-nspawn.in | |
parent | 5bcc71399ec603a1ebe1ac33b9b3294d748e2699 (diff) | |
download | devtools32-e9cf43913af4a58b126b378518049dee98eb4e7f.tar.xz |
generate separate config file for i686 and x86_64
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r-- | arch-nspawn.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in index 70fd854..b251756 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -99,7 +99,9 @@ build_mount_args() { copy_hostconf () { unshare --fork --pid gpg --homedir "$working_dir"/etc/pacman.d/gnupg/ --no-permission-warning --quiet --batch --import --import-options import-local-sigs "$(pacman-conf GpgDir)"/pubring.gpg >/dev/null 2>&1 pacman-key --gpgdir "$working_dir"/etc/pacman.d/gnupg/ --import-trustdb "$(pacman-conf GpgDir)" >/dev/null 2>&1 - printf 'Server = %s\n' "${host_mirrors[@]}" >"$working_dir/etc/pacman.d/mirrorlist" + printf 'Server = %s\n' "${host_mirrors[@]}" | \ + tee "$working_dir/etc/pacman.d/mirrorlist" > \ + "$working_dir/etc/pacman.d/mirrorlist32" [[ -n $pac_conf ]] && cp "$pac_conf" "$working_dir/etc/pacman.conf" [[ -n $makepkg_conf ]] && cp "$makepkg_conf" "$working_dir/etc/makepkg.conf" |