Fix shell issues and update mirror list

This commit is contained in:
Thomas Cole 2021-06-30 09:28:25 -04:00
parent 21ae29bc6f
commit d1122a05f8

View File

@ -20,6 +20,7 @@ MACADDRS=(
)
DISK="/dev/vda"
HOSTNAME="arch-testing"
USER="CLC"
PASSWD="$1$8nWcCPFE$SMC36PPfImzmQ9E3WEPvy1"
ROOTPASSWD="$1$8g0M2I8t$GNnx5EkVhu1Ykw7NuKZos."
@ -86,15 +87,23 @@ partition () {
}
sysinstall () {
echo " - Updating mirror list. This might take a while."
reflector --protocol https --sort rate --country 'United States' --save /etc/pacman.d/mirrorlist --verbose
echo " - Installing system."
pacstrap /mnt
echo " - Installing bootloader."
arch-chroot /mnt bootctl install
echo " - Updating fstab."
genfstab -t PARTUUID /mnt >> /mnt/etc/fstab
echo "HOSTNAME" > /mnt/etc/HOSTNAME
arch-chroot /mnt useradd -mU -s /usr/bin/zsh -G wheel,uucp,video,audio,storage,games,input $USER
arch-chroot /mnt chsh -s /usr/bin/zsh
echo " - Setting Hostname."
echo "$HOSTNAME" > /mnt/etc/HOSTNAME
arch-chroot /mnt useradd -mU -s /bin/bash -G wheel,uucp,video,audio,storage,games,input $USER
arch-chroot /mnt chsh -s /bin/bash
echo "$USER:$PASSWD" | chpasswd -e --root /mnt
echo "root:$ROOTPASSWD" | chpasswd -e --root /mnt