diff options
author | Erich Eckner <git@eckner.net> | 2019-04-01 10:54:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-21 08:27:36 +0100 |
commit | 681bf43341127fae2cbf9ba64670070053eded08 (patch) | |
tree | 115c51e428fe5771f6766d668eca3e0eab655a06 /arch-nspawn.in | |
parent | 9cb02ef158ddcc25cf8d58b8bce6f8dcbf42e147 (diff) | |
download | devtools32-681bf43341127fae2cbf9ba64670070053eded08.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 c227f45..04d9a8d 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -95,7 +95,9 @@ 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" |