From 52d780ea2b0714d035a84e350b516ca2e2c19af1 Mon Sep 17 00:00:00 2001 From: tiantian Date: Mon, 5 Sep 2022 01:25:38 +0800 Subject: gnu: bootloader: Extend `' for chain-loader. * gnu/bootloader.scm ()[chain-loader]: New field. (menu-entry->sexp, sexp->menu-entry): Support chain-loader. * doc/guix.texi (Bootloader Configuration): Document it. Co-Authored-By: Julien Lepiller Signed-off-by: Julien Lepiller --- doc/guix.texi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index db72e75a69..c21235f28d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -37553,6 +37553,24 @@ The list of commands for loading Multiboot modules. For example: @dots{})) @end lisp +@item @code{chain-loader} (default: @code{#f}) +A string that can be accepted by @code{grub}'s @code{chainloader} +directive. This has no effect if either @code{linux} or +@code{multiboot-kernel} fields are specified. The following is an +example of chainloading a different GNU/Linux system. + +@lisp +(bootloader + (bootloader-configuration + ;; @dots{} + (menu-entries + (list + (menu-entry + (label "GNU/Linux") + (device (uuid "1C31-A17C" 'fat)) + (chain-loader "/EFI/GNULinux/grubx64.efi")))))) +@end lisp + @end table @end deftp -- cgit v1.2.3