Update easy-arch.sh

useradd problem when I was testing it in VM
This commit is contained in:
Cyfraka 2021-11-07 15:15:42 +01:00 committed by GitHub
parent 21f84702a3
commit a6d3478493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ virt_check () {
# Selecting a kernel to install (function).
kernel_selector () {
print "List of kernels:"
print "1) Stable: Vanilla Linux kernel with a few specific Arch Linux patches applied4"
print "1) Stable: Vanilla Linux kernel with a few specific Arch Linux patches applied"
print "2) Hardened: A security-focused Linux kernel"
print "3) LTS: Long-term support (LTS) Linux kernel"
print "4) Zen: A Linux kernel optimized for desktop usage"
@ -322,7 +322,7 @@ arch-chroot /mnt /bin/passwd
if [ -n "$username" ]; then
print "Adding $username with root privilege."
useradd -m -G wheel "$username"
print "$username ALL=(ALL) ALL" >> /etc/sudoers.d/"$username"
echo "$username ALL=(ALL) ALL" >> /etc/sudoers.d/"$username"
print "Setting user password for $username."
arch-chroot /mnt /bin/passwd "$username"
fi