Add updateMirrors()

This commit is contained in:
Santiago Lo Coco 2021-12-24 00:56:59 -03:00
parent 17059d815c
commit 06d2825c3c
1 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,7 @@ mountPart() {
}
installPackages() {
pacstrap /mnt base linux linux-firmware git neovim intel-ucode
pacstrap /mnt base linux linux-firmware git neovim intel-ucode reflector
}
generateFstab() {
@ -98,6 +98,11 @@ setPassword() {
runInChrootWithInput "passwd"
}
updateMirrors() {
runInChrootWithInput "cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup"
runInChrootWithInput "sudo reflector --country Brazil,Chile,Colombia --protocol https --sort rate --save /etc/pacman.d/mirrorlist"
}
installMorePackages() {
runInChrootWithInput "pacman -Sy --noconfirm grub efibootmgr networkmanager network-manager-applet dialog reflector base-devel linux-headers xdg-user-dirs xdg-utils alsa-utils pipewire pipewire-alsa pipewire-pulse openssh reflector qemu qemu-arch-extra ttf-fira-code sudo nvidia-utils nvidia-settings xorg"
runInChrootWithInput "systemctl enable NetworkManager; systemctl enable fstrim.timer"
@ -163,6 +168,7 @@ runScript() {
setLocale
networkConf
setPassword
updateMirrors
installMorePackages
grubSetUp
userSetUp