archlinux: Lock the root account

No need to log in to the root account since we already configured
a user with sudo rights.
This commit is contained in:
Donovan Glover 2018-12-03 21:38:03 -05:00
parent 8d41afb5f7
commit dc261e58ad
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 3 additions and 3 deletions

View File

@ -29,3 +29,6 @@ echo "%wheel ALL=(ALL) ALL" > /mnt/etc/sudoers.d/01_wheel_all
# 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"
# Lock the root account (i.e. disable root login)
arch-chroot /mnt passwd -l root

View File

@ -42,9 +42,6 @@ env DISTSIZE="$DISTSIZE" ./001-preinstall
env HOSTNAME="$HOSTNAME" HIDPI="$HIDPI" ./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"