On Mon, 2025-10-13 at 20:44 -0400, Chris Murphy wrote: > I'm not off hand aware of GRUB ever writing to the ESP
If one uses "grub-set-default" in a GRUB booting menu (so that the same boot menu choice will be used by default at the next boot) it will save a parameter somewhere. Fedora has a /boot/grub2/grubenv file, but CentOS can change a /boot/efi/EFI/centos/grubenv file (both write a saved_entry= line to their grubenv file). CentOS has a link from /boot/grub2/grubenv to /boot/efi/EFI/centos/grubenv file. Having it in efi makes some sense for a multi-boot system, if you have a common menu for all possible distro boots and want to keep booting the same distro as last time, by default. Alternatively, having it stored in a distro's own boot directory or partition allows you to set a default boot for that distro (e.g. which kernel Fedora would boot, without messing around with the default kernel for some other distro). So, in essence, it *can*. Though how many people use that feature? You have to manually reconfigure GRUB to use the set-default function. And it'll depend on your distro as to where it writes it. -- uname -rsvp Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 (yes, this is the output from uname for this PC when I posted) Boilerplate: All unexpected mail to my mailbox is automatically deleted. I will only get to see the messages that are posted to the mailing list. -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
