Patrick Dupre composed on 2025-03-23 09:46 (UTC+0100):
> I have a machine with a dual fedora boot on 2 drives (with grub2)
> I daily maintain one (say A on /dev/sda4), and occasionally the other one
> (say B on /dev/sdc5).
> The problem is when I update B, grub is not update properly, i.e., I cannot
> boot on B with the new kernel.
> Hence, I run
> grub2-mkconfig -o /boot/grub2/grub.cfg
> on both machines
> But it is not enough
> I tried
> grub2-install /dev/sda
> But I get
> Installing for x86_64-efi platform.
> grub2-install: error: This utility should not be used for EFI platforms
> because it does not support UEFI Secure Boot. If you really wish to proceed,
> invoke the --force option.
> Make sure Secure Boot is disabled before proceeding.
> What is the correct procedure?
> dnf reinstall shim-* grub2-*
Simplest: remove Grub from B, or disable Grub on B. Only one Grub per PC is
needed. After each new kernel is installed to B, update Grub on A with os-prober
enabled and with GRUB_DISABLE_SUBMENU="y" in /etc/default/grub. Even that
frequent
Grub maintenance effort isn't needed if you configure your Grub to boot using
kernel and initrd symlinks instead of specific kernel and symlink versions.
I don't have any dual boot PCs. Mine are all multiboot, 10 or more GNU/Linux
installations per PC on most. Fewest has 4. 2 have more than 40 each.
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata
--
_______________________________________________
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