1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
7 <refentry id=
"loader.conf" conditional='ENABLE_EFI'
8 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
10 <title>loader.conf
</title>
11 <productname>systemd
</productname>
15 <refentrytitle>loader.conf
</refentrytitle>
16 <manvolnum>5</manvolnum>
20 <refname>loader.conf
</refname>
21 <refpurpose>Configuration file for systemd-boot
</refpurpose>
25 <para><filename><replaceable>ESP
</replaceable>/loader/loader.conf
</filename>,
26 <filename><replaceable>ESP
</replaceable>/loader/loader.conf.d/*.conf
</filename>
31 <title>Description
</title>
34 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>
35 will read
<filename>/loader/loader.conf
</filename> and any files with the
36 <literal>.conf
</literal> extension under
37 <filename>/loader/loader.conf.d/
</filename> on the EFI system partition (ESP).
40 <para>Each configuration file must consist of an option name, followed by
41 whitespace, and the option value.
<literal>#
</literal> may be used to start
42 a comment line. Empty and comment lines are ignored.
</para>
44 <para>Boolean arguments may be written as
45 <literal>yes
</literal>/
<literal>y
</literal>/
<literal>true
</literal>/
<literal>1</literal> or
46 <literal>no
</literal>/
<literal>n
</literal>/
<literal>false
</literal>/
<literal>0</literal>.
51 <title>Options
</title>
53 <para>The following configuration options are understood:
</para>
59 <listitem><para>A glob pattern to select the default entry. The default entry
60 may be changed in the boot menu itself, in which case the name of the
61 selected entry will be stored as an EFI variable, overriding this option.
68 <listitem><para>How long the boot menu should be shown before the default
69 entry is booted, in seconds. This may be changed in the boot menu itself and
70 will be stored as an EFI variable in that case, overriding this option.
73 <para>If the timeout is disabled, the default entry will be booted
74 immediately. The menu can be shown by pressing and holding a key before
75 systemd-boot is launched.
</para>
80 <term>console-mode
</term>
82 <listitem><para>This option configures the resolution of the console. Takes a
83 number or one of the special values listed below. The following values may be
90 <para>Standard UEFI
80x25 mode
</para>
97 <para>80x50 mode, not supported by all devices
</para>
104 <para>the first non-standard mode provided by the device
105 firmware, if any
</para>
112 <para>Pick a suitable mode automatically using heuristics
</para>
119 <para>Pick the highest-numbered available mode
</para>
126 <para>Keep the mode selected by firmware (the default)
</para>
137 <listitem><para>Takes a boolean argument. Enable (the default) or disable the
138 editor. The editor should be disabled if the machine can be accessed by
139 unauthorized persons.
</para></listitem>
143 <term>auto-entries
</term>
145 <listitem><para>Takes a boolean argument. Enable (the default) or disable
146 entries for other boot entries found on the boot partition. In particular,
147 this may be useful when loader entries are created to show replacement
148 descriptions for those entries.
</para></listitem>
152 <term>auto-firmware
</term>
154 <listitem><para>Takes a boolean argument. Enable (the default) or disable
155 the
"Reboot into firmware" entry.
</para></listitem>
161 <title>Example
</title>
163 <programlisting># /boot/efi/loader/loader.conf
165 default
01234567890abcdef1234567890abdf0-*
169 <para>The menu will not be shown by default (the menu can still be shown by
170 pressing and holding a key during boot). One of the entries with files with a
171 name starting with
<literal>01234567890abcdef1234567890abdf0-
</literal> will be
172 selected by default. If more than one entry matches, the one with the highest
173 priority will be selected (generally the one with the highest version number).
174 The editor will be disabled, so it is not possible to alter the kernel command
179 <title>See Also
</title>
181 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
182 <citerefentry><refentrytitle>bootctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>