Replaced reflector with private mirror.
This commit is contained in:
@@ -35,8 +35,8 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print "Updating mirrorlist..."
|
print "Setting mirrorlist to use private mirror..."
|
||||||
reflector --save /etc/pacman.d/mirrorlist --protocol https --country US --sort score
|
cat "Server = https://mirrors.logal.dev/archlinux/$repo/os/$arch" > /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# Provide the tip from the Arch Linux Installation Guide regarding optimal logical sector sizes.
|
# Provide the tip from the Arch Linux Installation Guide regarding optimal logical sector sizes.
|
||||||
print "Please check the following items before proceding:"
|
print "Please check the following items before proceding:"
|
||||||
@@ -118,7 +118,6 @@ pacstrap -K /mnt base \
|
|||||||
btrfs-progs \
|
btrfs-progs \
|
||||||
htop \
|
htop \
|
||||||
nano \
|
nano \
|
||||||
reflector \
|
|
||||||
sudo \
|
sudo \
|
||||||
ufw
|
ufw
|
||||||
|
|
||||||
@@ -179,24 +178,6 @@ arch-chroot /mnt sed -i "s|^# %wheel ALL=(ALL:ALL) ALL|%wheel ALL=(ALL:ALL) ALL|
|
|||||||
print "Disabling root account..."
|
print "Disabling root account..."
|
||||||
arch-chroot /mnt passwd -l root
|
arch-chroot /mnt passwd -l root
|
||||||
|
|
||||||
print "Configuring reflector..."
|
|
||||||
arch-chroot /mnt sh -c "cat > /etc/xdg/reflector/reflector.conf" <<EOF
|
|
||||||
# Reflector configuration file for the systemd service.
|
|
||||||
#
|
|
||||||
# Empty lines and lines beginning with "#" are ignored. All other lines should
|
|
||||||
# contain valid reflector command-line arguments. The lines are parsed with
|
|
||||||
# Python's shlex modules so standard shell syntax should work. All arguments are
|
|
||||||
# collected into a single argument list.
|
|
||||||
#
|
|
||||||
# See "reflector --help" for details.
|
|
||||||
|
|
||||||
--save /etc/pacman.d/mirrorlist
|
|
||||||
--protocol https
|
|
||||||
--country US
|
|
||||||
--sort score
|
|
||||||
EOF
|
|
||||||
arch-chroot /mnt systemctl enable reflector.timer
|
|
||||||
|
|
||||||
print "Please enter the username you'd like to use for your account"
|
print "Please enter the username you'd like to use for your account"
|
||||||
read username
|
read username
|
||||||
arch-chroot /mnt useradd -m -G wheel $username
|
arch-chroot /mnt useradd -m -G wheel $username
|
||||||
|
|||||||
Reference in New Issue
Block a user