Fix shell issues and update mirror list
This commit is contained in:
parent
21ae29bc6f
commit
d1122a05f8
@ -20,6 +20,7 @@ MACADDRS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
DISK="/dev/vda"
|
DISK="/dev/vda"
|
||||||
|
HOSTNAME="arch-testing"
|
||||||
USER="CLC"
|
USER="CLC"
|
||||||
PASSWD="$1$8nWcCPFE$SMC36PPfImzmQ9E3WEPvy1"
|
PASSWD="$1$8nWcCPFE$SMC36PPfImzmQ9E3WEPvy1"
|
||||||
ROOTPASSWD="$1$8g0M2I8t$GNnx5EkVhu1Ykw7NuKZos."
|
ROOTPASSWD="$1$8g0M2I8t$GNnx5EkVhu1Ykw7NuKZos."
|
||||||
@ -86,15 +87,23 @@ partition () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sysinstall () {
|
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
|
pacstrap /mnt
|
||||||
|
|
||||||
|
echo " - Installing bootloader."
|
||||||
arch-chroot /mnt bootctl install
|
arch-chroot /mnt bootctl install
|
||||||
|
|
||||||
|
echo " - Updating fstab."
|
||||||
genfstab -t PARTUUID /mnt >> /mnt/etc/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
|
echo " - Setting Hostname."
|
||||||
arch-chroot /mnt chsh -s /usr/bin/zsh
|
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 "$USER:$PASSWD" | chpasswd -e --root /mnt
|
||||||
echo "root:$ROOTPASSWD" | chpasswd -e --root /mnt
|
echo "root:$ROOTPASSWD" | chpasswd -e --root /mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user