libostree: Add initial GRUB2 support
In this approach, we drop a /etc/grub.d/15_ostree file which is a hybrid of shell/C that picks up bits from the GRUB2 library (e.g. the block device script generation), and then calls into libostree's GRUB2 code which knows about the BLS entries. This is admittedly ugly. There exists another approach for GRUB2 to learn the BLS specification. However, the spec has a few issues: https://www.redhat.com/archives/anaconda-devel-list/2014-July/msg00002.html This approach also gives a bit more control to the admin via the naming of the 15_ostree symlink; they can easily disable it: Or reorder the ostree entries ahead of 10_linux: Also, this approach doesn't require patches for grub2, which is an issue with the pressure to backport (rpm-)OSTree to EL7.
This commit is contained in:
1 parent
92c5a9f992
commit
d546abfa2a
19 files changed
+639
-11
No files matched your search
@@ -61,3 +61,14 @@ _ostree_bootloader_write_config (OstreeBootloader *self,
|
||||
return OSTREE_BOOTLOADER_GET_IFACE (self)->write_config (self, bootversion,
|
||||
cancellable, error);
|
||||
}
|
||||
|
||||
gboolean
|
||||
_ostree_bootloader_is_atomic (OstreeBootloader *self)
|
||||
{
|
||||
g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), FALSE);
|
||||
|
||||
if (OSTREE_BOOTLOADER_GET_IFACE (self)->is_atomic)
|
||||
return OSTREE_BOOTLOADER_GET_IFACE (self)->is_atomic (self);
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
Reference in new issue
Block a user