From 1d67bf6d747cf064e5557bfb230fb9eb8521891b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 2 Dec 2018 18:42:34 -0500 Subject: [PATCH] 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. --- .archlinux/install-scripts/004-postinstall | 3 --- .archlinux/install-scripts/install.sh | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index 766bad37..797f924c 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -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 diff --git a/.archlinux/install-scripts/install.sh b/.archlinux/install-scripts/install.sh index 7ea263cf..138ce7da 100755 --- a/.archlinux/install-scripts/install.sh +++ b/.archlinux/install-scripts/install.sh @@ -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"