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 /configure.ac | |
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 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b812c40f..ce2bf025 100644 --- a/configure.ac +++ b/configure.ac @@ -201,6 +201,12 @@ AS_IF([test "x$with_dracut" = "xyes" || test "x$with_mkinitcpio" = "xyes"], [ ]) AM_CONDITIONAL(BUILDOPT_SYSTEMD, test x$with_systemd = xyes) +AC_ARG_WITH(grub2, + AS_HELP_STRING([--with-grub2], + [Install grub2 hook (default: yes)]),, + [with_grub2=yes]) +AM_CONDITIONAL(BUILDOPT_GRUB2, test x$with_grub2 = xyes) + dnl for tests AS_IF([test "x$found_introspection" = xyes], [ AC_PATH_PROG(GJS, [gjs]) |