summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-instutil-builtins.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-10-11 08:59:06 -0400
committerColin Walters <walters@verbum.org>2014-10-16 14:15:00 -0400
commitd546abfa2a8c527d548b1be0ceea9c46d5faf2e3 (patch)
tree45403c302bbe34ab7828c5073f9ad39898df8bd8 /src/ostree/ot-admin-instutil-builtins.h
parent92c5a9f99211c10b506294164e4bfd1ff66639c7 (diff)
downloadostree-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/ostree/ot-admin-instutil-builtins.h')
-rw-r--r--src/ostree/ot-admin-instutil-builtins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ostree/ot-admin-instutil-builtins.h b/src/ostree/ot-admin-instutil-builtins.h
index b079ddea..5442eb52 100644
--- a/src/ostree/ot-admin-instutil-builtins.h
+++ b/src/ostree/ot-admin-instutil-builtins.h
@@ -26,6 +26,7 @@ G_BEGIN_DECLS
gboolean ot_admin_instutil_builtin_selinux_ensure_labeled (int argc, char **argv, OstreeSysroot *sysroot, GCancellable *cancellable, GError **error);
gboolean ot_admin_instutil_builtin_set_kargs (int argc, char **argv, OstreeSysroot *sysroot, GCancellable *cancellable, GError **error);
+gboolean ot_admin_instutil_builtin_grub2_generate (int argc, char **argv, OstreeSysroot *sysroot, GCancellable *cancellable, GError **error);
G_END_DECLS