~alpine/devel

grub upgrade to 2.06-r0 changes menuentry order

Phil Hofer <phil@sunfi.sh>
Details
Message ID
<hfztFC5sd4iT8OuM5RCK0bmrheWOxub3u0I7ND3AIesbQKnue1rQNO6sc12HUzJ4C1xhXzR5kPfaNJJzu1_8jshH0BXWTFePRbmvxsjmkUs=@sunfi.sh>
DKIM signature
missing
Download raw message
Hi folks,

I ran an `apk upgrade` on one of my systems that runs on edge this morning and discovered that my system would no longer reboot.
The issue boiled down to the grub-mkconfig post-install hook changing the default boot menu entry.

One of the recent changes to grub introduced /etc/grub.d/30_uefi-firmware, which introduces a menu entry for the UEFI interface.
For whatever reason, grub-mkconfig decided to make this menu entry the default rather than the menu entry from /etc/grub.d/10_linux.

The solution for my machine was just to run `grub-set-default 0`, but obviously that's not going to work for people who have more complex configurations.

I don't really know enough about grub to know what the fix is here, but hopefully someone else does.

On a related note: this is the second time a grub-mkconfig has soft-bricked on of my headless machines.
Is it possible to update grub without re-generating grub.cfg and grubenv?

Cheers,
Phil
Reply to thread Export thread (mbox)