ostree/src/boot
Javier Martinez Canillas 768eee87f6
grub2: Don't add menu entries if GRUB supports parsing BLS snippets
This is another attempt to avoid having duplicated menu entries caused by
GRUB having support to parse BLS snippets and the 15_ostree script adding
menu entries as well.

The previous attempt was in commit 985a141002 ("grub2: Exit gracefully if
the configuration has BLS enabled") but that lead to users not having menu
entries at all, due having an old GRUB version that was not able to parse
the BLS snippets.

This happened because the GRUB bootloader is never updated in the ESP as
a part of the OSTree upgrade transaction.

The logic is similar to the previous commit, the 15_ostree script exits if
able to determine that the bootloader can parse the BLS snippets directly.

But this time it will not only check that a BLS configuration was enabled,
but also that a /boot/grub2/.grub2-blscfg-supported file exists. This file
has to be created by a component outside of OSTree that also takes care of
updating GRUB to a version that has proper BLS support.
2020-04-06 20:44:19 +02:00
..
dracut ostree-prepare-root.service: Run earlier in initrd 2018-10-19 15:41:10 +00:00
grub2 grub2: Don't add menu entries if GRUB supports parsing BLS snippets 2020-04-06 20:44:19 +02:00
mkinitcpio Move ostree-* executables to /usr/lib/ostree 2016-08-11 14:04:59 +00:00
ostree-finalize-staged.path boot: Add ostree-finalize-staged.path 2018-10-23 13:10:49 +00:00
ostree-finalize-staged.service boot/finalize-staged: Run after systemd-journal-flush.service 2019-09-24 21:39:10 +00:00
ostree-prepare-root.service ostree-prepare-root.service: Run earlier in initrd 2018-10-19 15:41:10 +00:00
ostree-remount.service Support mounting /sysroot (and /boot) read-only 2019-12-11 15:33:57 +00:00
ostree-tmpfiles.conf boot: Add a tmpfiles.d snippet to clean up /var/tmp/ostree-ovl.XXX 2017-08-17 18:38:45 +00:00