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_
Joca 2025-02-18 04:16:00 +01:00 committed by BodgeMaster
parent 517ac34e3d
commit 3f10d03ad5
1 changed files with 10 additions and 0 deletions

View File

@ -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