Merge pull request #29 from Cyfraka/patch-1

Update easy-arch.sh
This commit is contained in:
Tommaso Chiti 2021-11-07 15:32:20 +01:00 committed by GitHub
commit 96b047eaf6
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). # Selecting a kernel to install (function).
kernel_selector () { kernel_selector () {
print "List of kernels:" 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 "2) Hardened: A security-focused Linux kernel"
print "3) LTS: Long-term support (LTS) Linux kernel" print "3) LTS: Long-term support (LTS) Linux kernel"
print "4) Zen: A Linux kernel optimized for desktop usage" print "4) Zen: A Linux kernel optimized for desktop usage"
@ -322,7 +322,7 @@ arch-chroot /mnt /bin/passwd
if [ -n "$username" ]; then if [ -n "$username" ]; then
print "Adding $username with root privilege." print "Adding $username with root privilege."
useradd -m -G wheel "$username" 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." print "Setting user password for $username."
arch-chroot /mnt /bin/passwd "$username" arch-chroot /mnt /bin/passwd "$username"
fi fi