Update easy-arch.sh

This commit is contained in:
TommyTran732 2021-04-15 07:17:56 -04:00 committed by GitHub
parent db155c2c6b
commit 3cbe6d664f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,8 +188,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
echo "Creating GRUB config file."
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
EOF
#Security kernel settings
sudo bash -c 'cat > /mnt/etc/sysctl.d/51-dmesg-restrict.conf' <<-'EOF'
kernel.dmesg_restrict = 1
@ -210,6 +208,8 @@ net.core.bpf_jit_harden = 2
kernel.yama.ptrace_scope = 3
EOF
EOF
# Setting root password.
echo "Setting root password."
arch-chroot /mnt /bin/passwd