You are not logged in.
Pages: 1
Hello,
I cant for the life of me get grub to save the added changes for Apparmor, yet when I add it on boot it works fine.
Here is my grub settings:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet lsm=apparmor,landlock,lockdown,yama,integrity,bpf"
GRUB_CMDLINE_LINUX=""I then run :
sudo grub-mkconfig -o /boot/grub/grub.cfgNo errors reported.
But when I reboot it still does not save and I have to add manually using the "e" key on every boot for it to work.
Last edited by Dream Coder (2026-07-29 17:09:52)
Offline
I then run :
sudo grub-mkconfig -o /boot/grub/grub.cfg
Please show what's in resulting grub.cfg. And what's in /proc/cmdline after boot?
Offline
10 out of 10: your grub does not read the file from /boot/grub/grub.cfg but from somewhere else - likely from a different partition not mounted
Offline
it shows in grub:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet lsm=apparmor,landlock,lockdown,yama,integrity,bpf"
cryptdevice=PARTUUID=bdc340ab-325e-420f-8081-a7b52fd45e55:root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=ext4 quiet splashYeah, I presumed it is not reading the grub.cfg, however I cant seem to find what it does read.
efibootmgr -uv
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0003,0004
Boot0001* UEFI OS HD(1,GPT,2bb6e448-00a8-4537-83af-115f54558007,0x800,0x200000)/\EFI\BOOT\BOOTX64.EFI
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 00 20 00 00 00 00 00 48 e4 b6 2b a8 00 37 45 83 af 11 5f 54 55 80 07 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot0002* UEFI:CD/DVD Drive BBS(129,,0x0)
dp: 05 01 09 00 81 00 00 00 00 / 7f ff 04 00
Boot0003* UEFI:Removable Device BBS(130,,0x0)
dp: 05 01 09 00 82 00 00 00 00 / 7f ff 04 00
Boot0004* UEFI:Network Device BBS(131,,0x0)
dp: 05 01 09 00 83 00 00 00 00 / 7f ff 04 00 Last edited by Dream Coder (2026-07-29 17:09:16)
Offline
blkid
/dev/nvme0n1p1: UUID="d4ea534f-0113-4e91-a596-b3864be66523" TYPE="crypto_LUKS" PARTUUID="16ad7ee4-5baa-4990-946a-0f668309eafc"
/dev/sdd1: LABEL="Dreams-512GB" BLOCK_SIZE="512" UUID="E2620D50620D2B3D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2687b236-dafd-4562-8465-8e07d36555a4"
/dev/sdc2: LABEL="New Volume" UUID="7CE4-571D" BLOCK_SIZE="512" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="0caa57d3-ee39-4e83-a775-16f9d42bf45e"
/dev/nvme1n1p2: UUID="aaff734d-d547-4b3b-9b47-ba0df828f0c8" TYPE="crypto_LUKS" PARTUUID="bdc340ab-325e-420f-8081-a7b52fd45e55"
/dev/nvme1n1p1: UUID="36A5-7803" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="2bb6e448-00a8-4537-83af-115f54558007"Last edited by Dream Coder (2026-07-29 17:06:22)
Offline
Also fdsik -l
Disk /dev/nvme1n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: FIKWOT FN950 2TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 02CF46DF-BFE8-4040-B641-15FDAD803E7B
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme1n1p2 2099200 3907026943 3904927744 1.8T Linux root (x86-64)
Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: CT2000P5PSSD8
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 554CD9DF-C1A1-499F-87B0-12279C253597
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 3907026943 3907024896 1.8T Linux home For the record I also used Archinstall this time around for installation.
Last edited by Dream Coder (2026-07-29 17:19:45)
Offline
Please post the output of
cat /proc/cmdline
findmnt /boot
find /boot -name grub.cfgAnd, please use [code][/code] tags, and edit your post in this regard
Offline
cat /proc/cmdline
cryptdevice=PARTUUID=bdc340ab-325e-420f-8081-a7b52fd45e55:root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=ext4 quiet splash findmnt /boot
TARGET SOURCE FSTYPE OPTIONS
/boot /dev/nvme1n1p1
vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=as sudo find /boot -name grub.cfg
/boot/grub/grub.cfg Last edited by Dream Coder (2026-07-29 17:19:55)
Offline
I recommend you to re-install Grub to avoid headache later.
since your firmware is booting \EFI\BOOT\BOOTX64.EFI, reinstalling the fallback GRUB EFI binary may resolve the issue if it's loading an outdated or "incorrect" installation...
# grub-install --target=x86_64-efi --efi-directory=/boot --removable --recheck
# grub-mkconfig -o /boot/grub/grub.cfguse the --removable flag when booting via the fallback EFI path, or configure the firmware to boot a dedicated GRUB entry instead.
Last edited by 5hridhyan (2026-07-29 17:44:54)
Offline
cat /proc/cmdline
Where's the BOOT_IMAGE variable?
Here is my grub settings:
it shows in grub:
In case it's not just that you're booting from the root partition or something like that, stop paraphrasing, https://bbs.archlinux.org/viewtopic.php?id=57855
grub.cfg isn't supposed to contain something like "GRUB_CMDLINE_LINUX_DEFAULT"
Post the complete file contents and outputs verbatim.
Online
Pages: 1