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 /lib/modules $CHROOT/lib/modules
|
||||||
mount -R /boot $CHROOT/boot
|
mount -R /boot $CHROOT/boot
|
||||||
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
|
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
|
||||||
|
echo $USER > /tmp/archbox_user
|
||||||
chroot $CHROOT /bin/bash -c "sh /chroot_setup"
|
chroot $CHROOT /bin/bash -c "sh /chroot_setup"
|
||||||
;;
|
;;
|
||||||
-e|--enter)
|
-e|--enter)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
USER=lemniskett
|
USER="lemniskett"
|
||||||
PRIV="sudo"
|
PRIV="sudo"
|
||||||
INSTALL_PATH="/var/archlinux"
|
INSTALL_PATH="/var/archlinux"
|
||||||
CHROOT="$INSTALL_PATH/root.x86_64"
|
CHROOT="$INSTALL_PATH/root.x86_64"
|
||||||
|
@ -15,8 +15,7 @@ pacman-key --populate archlinux
|
|||||||
msg "Installing essential packages..."
|
msg "Installing essential packages..."
|
||||||
pacman -Syu base base-devel xorg pulseaudio --noconfirm
|
pacman -Syu base base-devel xorg pulseaudio --noconfirm
|
||||||
msg "Creating user account..."
|
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"
|
CHROOT_USER="$(cat /tmp/archbox_user)"
|
||||||
read CHROOT_USER
|
|
||||||
useradd -m $CHROOT_USER
|
useradd -m $CHROOT_USER
|
||||||
gpasswd -a $CHROOT_USER wheel
|
gpasswd -a $CHROOT_USER wheel
|
||||||
echo "Enter root password"
|
echo "Enter root password"
|
||||||
|
Loading…
Reference in New Issue
Block a user