Enable NTP to avoid SSL issues. Sync database before installing packages
This commit is contained in:
parent
4c62f143e1
commit
3aac0aeaf8
@ -7,7 +7,7 @@
|
||||
|
||||
# shellcheck disable=SC2086,SC2046,SC2254
|
||||
|
||||
VER=2.1.38
|
||||
VER=2.1.39
|
||||
|
||||
# default values {
|
||||
|
||||
@ -1925,6 +1925,7 @@ install_mkinitcpio()
|
||||
install_mirrorlist()
|
||||
{
|
||||
if hash reflector > /dev/null 2>&1; then
|
||||
timedatectl set-ntp 1 && timedatectl > /dev/null 2>&1
|
||||
reflector --verbose --score 80 -l 40 -f 5 --sort rate --save "$1"
|
||||
elif hash rankmirrors > /dev/null 2>&1; then
|
||||
echo "Sorting mirrorlist... This will take a while"
|
||||
@ -1961,6 +1962,7 @@ install_background()
|
||||
if yesno "Background Install" "$_bginstall" "Pacstrap" "Copy ISO"; then
|
||||
(
|
||||
install_mirrorlist "/etc/pacman.d/mirrorlist" > /tmp/bgout 2>&1 &&
|
||||
pacman -Syy >> /tmp/bgout 2>&1 &&
|
||||
pacstrap /mnt base ${ISO_PKGS[*]} $net >> /tmp/bgout 2>&1 &&
|
||||
cp /etc/pacman.d/mirrorlist "$MNT/etc/pacman.d/mirrorlist" &&
|
||||
cp /etc/pacman.conf "$MNT/etc/pacman.conf" &&
|
||||
@ -1973,9 +1975,12 @@ install_background()
|
||||
else
|
||||
(
|
||||
rsync -avh /run/archiso/sfs/airootfs/ "$MNT/" > /tmp/bgout 2>&1 &&
|
||||
install_mirrorlist "$MNT/etc/pacman.d/mirrorlist" >> /tmp/bgout 2>&1 &&
|
||||
install_mirrorlist "/etc/pacman.d/mirrorlist" >> /tmp/bgout 2>&1 &&
|
||||
pacman -Syy >> /tmp/bgout 2>&1 &&
|
||||
cp /etc/pacman.d/mirrorlist "$MNT/etc/pacman.d/mirrorlist" &&
|
||||
cp /etc/pacman.conf "$MNT/etc/pacman.conf" &&
|
||||
al_repo "$MNT/etc/pacman.conf" &&
|
||||
chrun "pacman -Syyu $net --noconfirm --needed" >> /tmp/bgout 2>&1
|
||||
chrun "pacman -Syyu $net --noconfirm --needed" >> /tmp/bgout 2>&1 &&
|
||||
[[ $net == "networkmanager" ]] && chrun "systemctl enable NetworkManager.service" >> /tmp/bgout 2>&1
|
||||
[[ -e /tmp/wmlist ]] && chrun "pacman -S ${BASE_PKGS[*]} --noconfirm --needed" >> /tmp/bgout 2>&1
|
||||
) &
|
||||
|
Reference in New Issue
Block a user