meta: Make Arch installation passwd interactive

Instead of trying to automatically set the password to something easy to
remember, it is probably better to simply ask for the password upfront.
This commit is contained in:
Donovan Glover 2018-12-02 18:42:34 -05:00
parent 4923b4bdca
commit 1d67bf6d74
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 6 additions and 3 deletions

View File

@ -25,6 +25,3 @@ echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers
# Create a new user account with sudo privileges and the fish shell.
arch-chroot /mnt useradd -m -g users -G wheel -s /usr/bin/fish "$USERNAME"
# Then, set the password equal to the username (change this later).
echo "$USERNAME:$USERNAME" | chpasswd

View File

@ -29,3 +29,9 @@ echo "Running install scripts..."
env DISTSIZE="$DISTSIZE" ./001-preinstall
env HOSTNAME="$HOSTNAME" ./003-configure
env USERNAME="$USERNAME" ./004-postinstall
echo "Enter a password for the root user..."
arch-chroot /mnt passwd
echo "Enter a password for $USERNAME..."
arch-chroot /mnt passwd "$USERNAME"