feat(os): Always do 5 parallel pacman downloads (#1)

This commit is contained in:
hygienic-books 2023-02-23 01:15:13 +01:00
parent f9b2f144a6
commit c66e910146

View File

@ -225,8 +225,12 @@ function copy_zpool_cache () {
zpool set 'cachefile=/etc/zfs/'"${zpool_name}"'.cache' "${zpool_name}" zpool set 'cachefile=/etc/zfs/'"${zpool_name}"'.cache' "${zpool_name}"
} }
function install_archlinux () { function pacman_dl_parallel () {
sed -ri -e 's'$'\x1''^.*?(ParallelDownloads)[^\r\n\f]*'$'\x1''\1 = 5'$'\x1''g' '/etc/pacman.conf' sed -ri -e 's'$'\x1''^.*?(ParallelDownloads)[^\r\n\f]*'$'\x1''\1 = 5'$'\x1''g' '/etc/pacman.conf'
}
function install_archlinux () {
pacman_dl_parallel
pacstrap /mnt \ pacstrap /mnt \
base \ base \
base-devel \ base-devel \
@ -457,6 +461,7 @@ function install_os_in_chroot () {
pacman -S archlinux-keyring --noconfirm pacman -S archlinux-keyring --noconfirm
keep_initiramfs_root_only_rw keep_initiramfs_root_only_rw
pacman_dl_parallel
unleash_makepkg unleash_makepkg
add_motd_getting_started_msg add_motd_getting_started_msg
get_aur_helper get_aur_helper