mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 11:21:42 +01:00
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:
parent
4923b4bdca
commit
1d67bf6d74
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user