docs: Document extra arguments to chainloader on EFI

Extra arguments given to chainloader on EFI platforms will be sent to
the chainloaded application. Also, minor edit in the chainloading section
to note that chainloading can be a jump via the firmware and not
necessarily in real mode (which does not exist on some architectures).

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn authored and Daniel Kiper committed 2023-06-01 12:09:21 +02:00
1 parent 158a6583e6
commit cfb2acae01
1 file changed
+5 -2
+5 -2
View File
@@ -980,7 +980,7 @@ invoke shutdown machinery.
Operating systems that do not support Multiboot and do not have specific Operating systems that do not support Multiboot and do not have specific
support in GRUB (specific support is available for Linux, FreeBSD, NetBSD support in GRUB (specific support is available for Linux, FreeBSD, NetBSD
and OpenBSD) must be chain-loaded, which involves loading another boot and OpenBSD) must be chain-loaded, which involves loading another boot
loader and jumping to it in real mode. loader and jumping to it in real mode or via the firmware.
The @command{chainloader} command (@pxref{chainloader}) is used to set this The @command{chainloader} command (@pxref{chainloader}) is used to set this
up. It is normally also necessary to load some GRUB modules and set the up. It is normally also necessary to load some GRUB modules and set the
@@ -4054,10 +4054,13 @@ a list of commands that could use more documentation:
@node chainloader @node chainloader
@subsection chainloader @subsection chainloader
@deffn Command chainloader [@option{--force}] file @deffn Command chainloader [@option{--force}] file [args...]
Load @var{file} as a chain-loader. Like any other file loaded by the Load @var{file} as a chain-loader. Like any other file loaded by the
filesystem code, it can use the blocklist notation (@pxref{Block list filesystem code, it can use the blocklist notation (@pxref{Block list
syntax}) to grab the first sector of the current partition with @samp{+1}. syntax}) to grab the first sector of the current partition with @samp{+1}.
On EFI platforms, any arguments after @var{file} will be sent to the loaded
image.
If you specify the option @option{--force}, then load @var{file} forcibly, If you specify the option @option{--force}, then load @var{file} forcibly,
whether it has a correct signature or not. This is required when you want to whether it has a correct signature or not. This is required when you want to
load a defective boot loader, such as SCO UnixWare 7.1. load a defective boot loader, such as SCO UnixWare 7.1.