Remove username input
This commit is contained in:
parent
c97395e93e
commit
a3b9c1c3e5
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
USER=lemniskett
|
||||
USER="lemniskett"
|
||||
PRIV="sudo"
|
||||
INSTALL_PATH="/var/archlinux"
|
||||
CHROOT="$INSTALL_PATH/root.x86_64"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user