You are not logged in.

#1 2025-02-07 21:57:09

MrKimler
Member
Registered: 2025-02-07
Posts: 1

[SOLVED] AppArmor doesn't activates at startup.

I'm installing Arch Linux for the second time and this time I have it configured to run via EFI/GPT.
I configured the /etc/default/grub config like it says on the wiki like this:

GRUB_CMDLINE_LINUX_DEFAULT=“loglevel=3 quiet lsm=landlock,lockdown,yama,integrity,apparmor,bpf audit=1"

Next I changed it to:

GRUB_CMDLINE_LINUX_DEFAULT=“loglevel=3 quiet lsm=landlock,lockdown,yama,integrity,apparmor,bpf audit=1 apparmor=1 security=apparmor”

- which I realize was pointless.
I installed apparmor and audit(I know it's in base):

pacman -S apparmor audit

When installing grub, I did everything as follows:

mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot
genfstab -U /mnt >> /mnt/etc/fstab
umount /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sdb1 /mnt/boot/efi
grub-install

If the boot partition /dev/sdb1 was mounted to /boot and I ran grub-install - it wrote that it didn't see EFI, so I did that.
After that I logged in, where /boot is empty (no linux, no linux-firmware, no grub), but there is a grubx64.efi file in /boot/efi/arch.

After the changes in /etc/default/grub, I ran grub-mkconfig -o /boot/grub/grub.cfg each time and rebooted the system each time.
The grub.cfg file is missing font and GRUB_CMDLINE_LINUX_DEFAULT=“loglevel=3 quiet lsm=”landlock,lockdown,yama,integrity,apparmor,bpf audit=1 apparmor=1 security=apparmor” - for some reason.

I updated all packages before publishing:

pacman -Syu

It didn't work.

Accordingly apparmor does not work, and there is nothing in /boot except /boot/grub/grub.cfg and efi. And I don't have the slightest
idea what to do (I couldn't find anything on the wiki and forums, I must have searched badly). Pardon my English

[SOLVED]
I reinstalled base, linux, linux-firmware on the system, and in the /etc/fstab file changed /boot to /boot/efi and remounted /dev/sdb1 to /boot/efi. Reinstalled grub and grub-install worked without problems, as did apparmor. Sorry for the trouble.

Last edited by MrKimler (2025-02-07 23:06:44)

Offline

Board footer

Powered by FluxBB