1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id=
"loader.conf" conditional='ENABLE_EFI'
7 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
9 <title>loader.conf
</title>
10 <productname>systemd
</productname>
14 <refentrytitle>loader.conf
</refentrytitle>
15 <manvolnum>5</manvolnum>
19 <refname>loader.conf
</refname>
20 <refpurpose>Configuration file for systemd-boot
</refpurpose>
24 <para><filename><replaceable>ESP
</replaceable>/loader/loader.conf
</filename>,
25 <filename><replaceable>ESP
</replaceable>/loader/entries/*.conf
</filename>
30 <title>Description
</title>
33 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>
34 will read
<filename><replaceable>ESP
</replaceable>/loader/loader.conf
</filename> and any files with the
35 <literal>.conf
</literal> extension under
36 <filename><replaceable>ESP
</replaceable>/loader/entries/
</filename> on the EFI system partition (ESP).
39 <para>Each configuration file must consist of an option name, followed by
40 whitespace, and the option value.
<literal>#
</literal> may be used to start
41 a comment line. Empty and comment lines are ignored.
</para>
43 <para>Boolean arguments may be written as
44 <literal>yes
</literal>/
<literal>y
</literal>/
<literal>true
</literal>/
<literal>t
</literal>/
<literal>on
</literal>/
<literal>1</literal> or
45 <literal>no
</literal>/
<literal>n
</literal>/
<literal>false
</literal>/
<literal>f
</literal>/
<literal>off
</literal>/
<literal>0</literal>.
50 <title>Options
</title>
52 <para>The following configuration options in
<filename>loader.conf
</filename> are understood:
</para>
58 <listitem><para>A glob pattern to select the default entry. The default entry
59 may be changed in the boot menu itself, in which case the name of the
60 selected entry will be stored as an EFI variable, overriding this option.
64 <title>Automatically detected entries will use the following names:
</title>
67 <colspec colname='name'
/>
68 <colspec colname='expl'
/>
72 <entry>Description
</entry>
77 <entry>auto-efi-default
</entry>
78 <entry>EFI Default Loader
</entry>
81 <entry>auto-efi-shell
</entry>
82 <entry>EFI Shell
</entry>
85 <entry>auto-osx
</entry>
89 <entry>auto-reboot-to-firmware-setup
</entry>
90 <entry>Reboot Into Firmware Interface
</entry>
93 <entry>auto-windows
</entry>
94 <entry>Windows Boot Manager
</entry>
104 <listitem><para>How long the boot menu should be shown before the default
105 entry is booted, in seconds. This may be changed in the boot menu itself and
106 will be stored as an EFI variable in that case, overriding this option.
109 <para>If the timeout is disabled, the default entry will be booted
110 immediately. The menu can be shown by pressing and holding a key before
111 systemd-boot is launched.
</para>
116 <term>console-mode
</term>
118 <listitem><para>This option configures the resolution of the console. Takes a
119 number or one of the special values listed below. The following values may be
126 <para>Standard UEFI
80x25 mode
</para>
133 <para>80x50 mode, not supported by all devices
</para>
140 <para>the first non-standard mode provided by the device
141 firmware, if any
</para>
148 <para>Pick a suitable mode automatically using heuristics
</para>
155 <para>Pick the highest-numbered available mode
</para>
162 <para>Keep the mode selected by firmware (the default)
</para>
173 <listitem><para>Takes a boolean argument. Enable (the default) or disable the
174 editor. The editor should be disabled if the machine can be accessed by
175 unauthorized persons.
</para></listitem>
179 <term>auto-entries
</term>
181 <listitem><para>Takes a boolean argument. Enable (the default) or disable
182 entries for other boot entries found on the boot partition. In particular,
183 this may be useful when loader entries are created to show replacement
184 descriptions for those entries.
</para></listitem>
188 <term>auto-firmware
</term>
190 <listitem><para>Takes a boolean argument. Enable (the default) or disable
191 the
"Reboot into firmware" entry.
</para></listitem>
195 <term>random-seed-mode
</term>
197 <listitem><para>Takes one of
<literal>off
</literal>,
<literal>with-system-token
</literal> and
198 <literal>always
</literal>. If
<literal>off
</literal> no random seed data is read off the ESP, nor
199 passed to the OS. If
<literal>with-system-token
</literal> (the default)
200 <command>systemd-boot
</command> will read a random seed from the ESP (from the file
201 <filename>/loader/random-seed
</filename>) only if the
<varname>LoaderSystemToken
</varname> EFI
202 variable is set, and then derive the random seed to pass to the OS from the combination. If
203 <literal>always
</literal> the boot loader will do so even if
<varname>LoaderSystemToken
</varname> is
204 not set. This mode is useful in environments where protection against OS image reuse is not a
205 concern, and the random seed shall be used even with no further setup in place. Use
<command>bootctl
206 random-seed
</command> to initialize both the random seed file in the ESP and the system token EFI
209 <para>See
<ulink url=
"https://systemd.io/RANDOM_SEEDS">Random Seeds
</ulink> for further
210 information.
</para></listitem>
216 <title>Example
</title>
218 <programlisting># /boot/efi/loader/loader.conf
220 default
01234567890abcdef1234567890abdf0-*
224 <para>The menu will not be shown by default (the menu can still be shown by
225 pressing and holding a key during boot). One of the entries with files with a
226 name starting with
<literal>01234567890abcdef1234567890abdf0-
</literal> will be
227 selected by default. If more than one entry matches, the one with the highest
228 priority will be selected (generally the one with the highest version number).
229 The editor will be disabled, so it is not possible to alter the kernel command
234 <title>See Also
</title>
236 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
237 <citerefentry><refentrytitle>bootctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>