Update easy-arch.sh

This commit is contained in:
Tommaso Chiti 2021-05-11 20:04:41 +02:00 committed by GitHub
parent 95b5042667
commit 10cf60d674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,9 +222,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
# Creating grub config file. # Creating grub config file.
echo "Creating GRUB config file." echo "Creating GRUB config file."
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
# Enabling AppArmor
systemctl enable apparmor --root=/mnt &>/dev/null
EOF EOF
@ -232,6 +229,10 @@ EOF
echo "Setting root password." echo "Setting root password."
arch-chroot /mnt /bin/passwd arch-chroot /mnt /bin/passwd
# Enabling AppArmor.
echo "Enabling AppArmor."
systemctl enable apparmor --root=/mnt &>/dev/null
# Enabling Snapper automatic snapshots. # Enabling Snapper automatic snapshots.
echo "Enabling Snapper and automatic snapshots entries." echo "Enabling Snapper and automatic snapshots entries."
systemctl enable snapper-timeline.timer --root=/mnt &>/dev/null systemctl enable snapper-timeline.timer --root=/mnt &>/dev/null