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_master
parent
517ac34e3d
commit
3f10d03ad5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue