How to remove windows grub entry on Fedora Kinoite?

Hello,
I’ve recently deleted my windows drive. However, the boot entry is still in grub.
I’ve also deleted /boot/efi/EFI/Microsoft, but windows is still shown even after doing rpm-ostree upgrade (which I think updates grub to change the kinoite entry to the new version).

What can I do to remove this ?

I’ve already tried sudo grub2-mkconfig -o /boot/grub2/grub.cfg but it doesn’t seem to works on immutable systems.

/usr/bin/grub2-probe : erreur : impossible d'obtenir le chemin canonique de « composefs ».

Do you have the file /etc/grub.d/30_os-prober?
If you do that is where the Window menu is coming from.

I’m not a kinoite user/admin and cannot help with why you cannot update grub.

Hi, dunno about GRUB, but if your Windows entry is in the EFI db try this.

$ efibootmgr

You should see your Windows partition labeled Boot000N. Deleting it is EZ:

$ sudo efibootmgr -B -b N

Will that change the grub menu?

Sorry, just edited above comment to include I’m not sure about GRUB.

I’m assuming you have a “normal” install on an EFI system? Do you have /boot and /boot/efi partitions (check your /etc/fstab)?

If so, the command is $ sudo grub2-mkconfig -o /etc/grub2-efi.cfg

Edit:

Nevermind then. :face_with_spiral_eyes:

Double edit:

I think the OP was supposed to edit the plain text file, not generate it using grub2-mkconfig. I’m afraid the generated file might now be gobbledygook.

See:

These 2 commands are identical since /etc/grub2-efi.cfg is a link to /boot/grub2/grub.cfg.

The only difference I can tell may be related to using an atomic system (kinoite) and as already noted the grub2-mkconfig command is not used on atomic systems.