#156 Drop ostree-grub2
Closed by siosm. Opened by jlebon.
jlebon/workstation-ostree-config pr/drop-ostree-grub2  into  master

Download 156.patch

We switched to blscfg now, so we don't need to manually generate
entries. Otherwise, we'll just end up with duplicate GRUB2 menu entries.

Note that the blscfg code comes from 10_linux and we're still
running grub2-mkconfig. Which is good actually, because it means that
machines on previous versions will be able to safely update and
transparently switch to blscfg.

Drop the "sync with fedora-atomic-host.json" bit since FAH is forever
stuck in the past now at f29.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1751272#c27

We'll need this patch on f31 as well. Can do that once this goes in.

I don't think we can just drop it because ostree doesn't update the bootloaders as a part of an deployment transaction. So it may be the original grub2 installed doesn't have BLS support.

For new installs (since F30) Anaconda sets GRUB_ENABLE_BLSCFG=true in /etc/default/grub, so we can use that as an indication if the installed bootloader has BLS support or not. And only add the menu entries using the 30_ostreeif that option has been set.

I've proposed an ostree patch that does this:

https://github.com/ostreedev/ostree/pull/1929

Closing as this is now tracked in https://github.com/fedora-silverblue/issue-tracker/issues/120

Pull-Request has been closed by siosm

Metadata