mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
1.0 KiB
1.0 KiB
title |
---|
System Recovery |
System Recovery
Issue in some core profiles like the systemd suite, or the desktop environment can fully break your system. This should not happen a lot, but if it does here is the process to recover your system on Archlinux:
- Boot from a Archlinux live USB
- If you root partition is encryped, decrypt it:
cryptsetup open /dev/<your-disk-id> vg0
- Mount your root partition:
mount /dev/<your-plain-disk-id> /mnt
- Chroot into your system:
arch-chroot /mnt
- Check the AppArmor messages to see what profile is faulty:
aa-log
- Temporarily fix the issue with either:
- When only one profile is faultily, remove it:
rm /etc/apparmor.d/<profile-name>
- Otherwise, you can also remove the package:
pacman -R apparmor.d
- Alternatively, you may temporarily disable apparmor as it will allow you to
boot and study the log:
systemctl disable apparmor
- When only one profile is faultily, remove it:
- Exit, unmount, and reboot:
exit umount -R /mnt reboot
- Create an issue and report the output of
aa-log