summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-bootloader.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-10-17 11:46:52 -0400
committerColin Walters <walters@verbum.org>2014-10-23 21:42:30 -0400
commit0c89abee6d1142b6b20ba2539eceece2cbd3b9eb (patch)
treeee3bc45dc862651b54345050d108cafa7458890e /src/libostree/ostree-bootloader.h
parentb43ce2329e1a09ffe2d103855702a1e76348522b (diff)
downloadostree-0c89abee6d1142b6b20ba2539eceece2cbd3b9eb.tar.gz
Add (non-atomic) support for GRUB2 + UEFI
We need basic support for UEFI - many newer servers don't support BIOS compatibility mode anymore. However, this patch only implements non-atomic because UEFI is FAT, and we can't do the previous design for OSTree of atomic swap of /boot/loader. The Fedora/RHEL UEFI layout has the kernels on a "real" /boot partition, and /boot/efi/EFI/$vendor just holds the grub2 UEFI binary and grub.cfg. Following this, /boot/loader is still on the OS boot partition, and we still atomically swap it. This potentially paves the way to atomic upgrades in the future. https://bugzilla.gnome.org/show_bug.cgi?id=724246
Diffstat (limited to 'src/libostree/ostree-bootloader.h')
-rw-r--r--src/libostree/ostree-bootloader.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libostree/ostree-bootloader.h b/src/libostree/ostree-bootloader.h
index a84ce6ba..cbb25aac 100644
--- a/src/libostree/ostree-bootloader.h
+++ b/src/libostree/ostree-bootloader.h
@@ -37,7 +37,10 @@ struct _OstreeBootloaderInterface
GTypeInterface g_iface;
/* virtual functions */
- gboolean (* query) (OstreeBootloader *self);
+ gboolean (* query) (OstreeBootloader *bootloader,
+ gboolean *out_is_active,
+ GCancellable *cancellable,
+ GError **error);
const char * (* get_name) (OstreeBootloader *self);
gboolean (* write_config) (OstreeBootloader *self,
int bootversion,
@@ -48,7 +51,10 @@ struct _OstreeBootloaderInterface
GType _ostree_bootloader_get_type (void) G_GNUC_CONST;
-gboolean _ostree_bootloader_query (OstreeBootloader *self);
+gboolean _ostree_bootloader_query (OstreeBootloader *bootloader,
+ gboolean *out_is_active,
+ GCancellable *cancellable,
+ GError **error);
const char *_ostree_bootloader_get_name (OstreeBootloader *self);