From: Zbigniew Jędrzejewski-Szmek Date: Mon, 28 Jul 2025 12:38:39 +0000 (+0200) Subject: man: fix confusion in loader.conf X-Git-Tag: v258-rc2~50^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83de23353aa9e41d59cf198f1c8fd5d56c1e97b;p=thirdparty%2Fsystemd.git man: fix confusion in loader.conf For some reason, the man page for loader.conf also mentioned type#1 entries in passing. Except for using the same file extension, those files are in a completely different format and with a different purpose. This mixup was first introduced in f37d3835828c45b3a92ed12d9a6a30796c0a4a27, was then reported in #10923, which was closed by cbae79b8d07327051c1e1f438f7086ab634b93f8, but that didn't fix the actual issue. Really fixes #10923. While at it, simplify and improve the wording a bit. --- diff --git a/man/loader.conf.xml b/man/loader.conf.xml index f14b77b5371..293f59adfdb 100644 --- a/man/loader.conf.xml +++ b/man/loader.conf.xml @@ -21,47 +21,44 @@ - ESP/loader/loader.conf, - ESP/loader/entries/*.conf - XBOOTLDR/loader/entries/*.conf - + ESP/loader/loader.conf Description - systemd-boot7 will - read ESP/loader/loader.conf, and any files with the - .conf extension under - ESP/loader/entries/ on the EFI system partition (ESP), - and XBOOTLDR/loader/entries/ on the extended boot loader - partition (XBOOTLDR) as defined by Boot Loader - Specification. + systemd-boot7 reads + ESP/loader/loader.conf. This file configures whether the + menu is shown and for how long, the font, audible beep, types of menu entries to show, the default + choice, and some aspects of Secure Boot enrollment and firmware handling. See the list of available + options below. + + The file uses UTF-8 encoding and consists of series of lines separated by "line feed" (i.e. ASCII + code 10). Lines that are empty or start with the comment sign (#) are ignored. Other + lines consist of an option name, followed by whitespace, and the option value. - Each of these configuration files must consist of series of newline (i.e. ASCII code 10) separated - lines, each consisting of an option name, followed by whitespace, and the option - value. # may be used to start a comment line. Empty and comment lines are ignored. The - files use UTF-8 encoding. - Boolean arguments may be written as - yes/y/true/t/on/1 or + yes/y/true/t/on/1 + or no/n/false/f/off/0. + + Note: systemd-boot will also read boot loader entry files, + type #1 (ESP/loader/entries/*.conf and + XBOOTLDR/loader/entries/*.conf) + and type #2 (ESP/EFI/Linux/*.uki + and XBOOTLDR/EFI/Linux/*.uki). + Those files are described by the + Boot Loader + Specification. Options - The configuration options supported by - ESP/loader/entries/*.conf and - XBOOTLDR/loader/entries/*.conf files are defined as part - of the Boot Loader - Specification. - - The following configuration are supported by the loader.conf configuration - file: + The following configuration are supported in loader.conf: