mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
useradd problem when I was testing it in VM
This commit is contained in:
parent
21f84702a3
commit
a6d3478493
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue