diff options
author | Colin Walters <walters@verbum.org> | 2014-10-11 08:59:06 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-10-16 14:15:00 -0400 |
commit | d546abfa2a8c527d548b1be0ceea9c46d5faf2e3 (patch) | |
tree | 45403c302bbe34ab7828c5073f9ad39898df8bd8 /src/libostree/ostree-bootloader.h | |
parent | 92c5a9f99211c10b506294164e4bfd1ff66639c7 (diff) | |
download | ostree-d546abfa2a8c527d548b1be0ceea9c46d5faf2e3.tar.gz |
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.
Diffstat (limited to 'src/libostree/ostree-bootloader.h')
-rw-r--r-- | src/libostree/ostree-bootloader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-bootloader.h b/src/libostree/ostree-bootloader.h index 0d07fdba..a84ce6ba 100644 --- a/src/libostree/ostree-bootloader.h +++ b/src/libostree/ostree-bootloader.h @@ -43,6 +43,7 @@ struct _OstreeBootloaderInterface int bootversion, GCancellable *cancellable, GError **error); + gboolean (* is_atomic) (OstreeBootloader *self); }; GType _ostree_bootloader_get_type (void) G_GNUC_CONST; @@ -56,5 +57,7 @@ gboolean _ostree_bootloader_write_config (OstreeBootloader *self, GCancellable *cancellable, GError **error); +gboolean _ostree_bootloader_is_atomic (OstreeBootloader *self); + G_END_DECLS |