user passwords
This commit is contained in:
parent
ddbd48b158
commit
e67f7bb166
@ -23,7 +23,7 @@ MACADDRS=(
|
||||
DISK="/dev/vda"
|
||||
HOSTNAME="arch-testing"
|
||||
USER="clc"
|
||||
PASSWD="notareallpass"
|
||||
PASSWD="$6$xyz$qss5rNcJjj5Efn1tSkCaplTQXVbQlmXkjxOd/FQvZzlKSRg/DUalJkPaoiJZkAS.wDCt9b1eA3CWePHvQDi5T."
|
||||
ROOTPASSWD="needssalt"
|
||||
|
||||
#Echo text with a color passed as the second arguement
|
||||
@ -92,7 +92,7 @@ sysinstall () {
|
||||
#reflector --protocol https --sort rate --country 'United States' --save /etc/pacman.d/mirrorlist --verbose
|
||||
|
||||
echoc " - Installing system." $GREEN
|
||||
pacstrap /mnt base base-devel linux linux-firmware nano
|
||||
pacstrap /mnt base linux linux-firmware nano
|
||||
|
||||
echoc " - Installing bootloader." $GREEN
|
||||
arch-chroot /mnt pacman -Sy --noconfirm grub efibootmgr os-prober
|
||||
@ -109,8 +109,8 @@ sysinstall () {
|
||||
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" | arch-chroot /mnt chpasswd -e
|
||||
echo "root:$ROOTPASSWD" | arch-chroot /mnt chpasswd -e
|
||||
echo "$USER:$PASSWD" | chpasswd -e --root /mnt
|
||||
echo "root:$ROOTPASSWD" | chpasswd --root /mnt
|
||||
}
|
||||
|
||||
######################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user