Remove username input

This commit is contained in:
lemniskett 2020-11-08 22:36:35 +07:00
parent c97395e93e
commit a3b9c1c3e5
3 changed files with 3 additions and 3 deletions

View File

@ -77,6 +77,7 @@ case $1 in
mount -R /lib/modules $CHROOT/lib/modules
mount -R /boot $CHROOT/boot
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
echo $USER > /tmp/archbox_user
chroot $CHROOT /bin/bash -c "sh /chroot_setup"
;;
-e|--enter)

View File

@ -1,4 +1,4 @@
USER=lemniskett
USER="lemniskett"
PRIV="sudo"
INSTALL_PATH="/var/archlinux"
CHROOT="$INSTALL_PATH/root.x86_64"

View File

@ -15,8 +15,7 @@ pacman-key --populate archlinux
msg "Installing essential packages..."
pacman -Syu base base-devel xorg pulseaudio --noconfirm
msg "Creating user account..."
echo "Enter the name of the user account, you may want it to be the same as the host os so it will share the same home directory"
read CHROOT_USER
CHROOT_USER="$(cat /tmp/archbox_user)"
useradd -m $CHROOT_USER
gpasswd -a $CHROOT_USER wheel
echo "Enter root password"