From 3f10d03ad5676e1cc8648cb91439fd7eff459507 Mon Sep 17 00:00:00 2001 From: Jocadbz Date: Tue, 18 Feb 2025 04:16:00 +0100 Subject: [PATCH] install stage 2: finish system setup - allow the user to add a user - remove installation files This commit was originally part of a larger _kitchen sink mix commit_ --- install-stage2.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-stage2.sh b/install-stage2.sh index ce933e0..2bfdbe6 100644 --- a/install-stage2.sh +++ b/install-stage2.sh @@ -132,4 +132,14 @@ else exit 1 fi +# Stage 2 Tasks +echo "Setting up user..." +read -p "Enter username: " NEW_USER +useradd -m -G wheel "$NEW_USER" +passwd "$NEW_USER" + +echo "Cleaning up installation files..." +rm -rf "$STAGE2_DIR" +mv /mnt/target/etc/sv/agetty-tty1/conf.bak /mnt/target/etc/sv/agetty-tty1/conf >> $LOGFILE 2>&1 + bash --norc --noprofile