Add updateMirrors()
This commit is contained in:
parent
17059d815c
commit
06d2825c3c
|
@ -68,7 +68,7 @@ mountPart() {
|
||||||
}
|
}
|
||||||
|
|
||||||
installPackages() {
|
installPackages() {
|
||||||
pacstrap /mnt base linux linux-firmware git neovim intel-ucode
|
pacstrap /mnt base linux linux-firmware git neovim intel-ucode reflector
|
||||||
}
|
}
|
||||||
|
|
||||||
generateFstab() {
|
generateFstab() {
|
||||||
|
@ -98,6 +98,11 @@ setPassword() {
|
||||||
runInChrootWithInput "passwd"
|
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() {
|
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 "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"
|
runInChrootWithInput "systemctl enable NetworkManager; systemctl enable fstrim.timer"
|
||||||
|
@ -163,6 +168,7 @@ runScript() {
|
||||||
setLocale
|
setLocale
|
||||||
networkConf
|
networkConf
|
||||||
setPassword
|
setPassword
|
||||||
|
updateMirrors
|
||||||
installMorePackages
|
installMorePackages
|
||||||
grubSetUp
|
grubSetUp
|
||||||
userSetUp
|
userSetUp
|
||||||
|
|
Loading…
Reference in New Issue