1LOADER.CONF(5) loader.conf LOADER.CONF(5)
2
3
4
6 loader.conf - Configuration file for systemd-boot
7
9 ESP/loader/loader.conf, ESP/loader/entries/*.conf
10
12 systemd-boot(7) will read ESP/loader/loader.conf and any files with the
13 ".conf" extension under ESP/loader/entries/ on the EFI system partition
14 (ESP).
15
16 Each configuration file must consist of an option name, followed by
17 whitespace, and the option value. "#" may be used to start a comment
18 line. Empty and comment lines are ignored.
19
20 Boolean arguments may be written as "yes"/"y"/"true"/"t"/"on"/"1" or
21 "no"/"n"/"false"/"f"/"off"/"0".
22
24 The following configuration options in loader.conf are understood:
25
26 default
27 A glob pattern to select the default entry. The default entry may
28 be changed in the boot menu itself, in which case the name of the
29 selected entry will be stored as an EFI variable, overriding this
30 option.
31
32 If set to "@saved" the chosen entry will be saved as an EFI
33 variable on every boot and automatically selected the next time the
34 boot loader starts.
35
36 Table 1. Automatically detected entries will use the following
37 names:
38 ┌──────────────────────────────┬──────────────────────┐
39 │Name │ Description │
40 ├──────────────────────────────┼──────────────────────┤
41 │auto-efi-default │ EFI Default Loader │
42 ├──────────────────────────────┼──────────────────────┤
43 │auto-efi-shell │ EFI Shell │
44 ├──────────────────────────────┼──────────────────────┤
45 │auto-osx │ macOS │
46 ├──────────────────────────────┼──────────────────────┤
47 │auto-reboot-to-firmware-setup │ Reboot Into Firmware │
48 │ │ Interface │
49 ├──────────────────────────────┼──────────────────────┤
50 │auto-windows │ Windows Boot Manager │
51 └──────────────────────────────┴──────────────────────┘
52
53 timeout
54 How long the boot menu should be shown before the default entry is
55 booted, in seconds. This may be changed in the boot menu itself and
56 will be stored as an EFI variable in that case, overriding this
57 option.
58
59 If set to "menu-hidden" or "0" (the default) no menu is shown and
60 the default entry will be booted immediately. The menu can be shown
61 by pressing and holding a key before systemd-boot is launched.
62 Setting this to "menu-force" disables the timeout while always
63 showing the menu.
64
65 console-mode
66 This option configures the resolution of the console. Takes a
67 number or one of the special values listed below. The following
68 values may be used:
69
70 0
71 Standard UEFI 80x25 mode
72
73 1
74 80x50 mode, not supported by all devices
75
76 2
77 the first non-standard mode provided by the device firmware, if
78 any
79
80 auto
81 Pick a suitable mode automatically using heuristics
82
83 max
84 Pick the highest-numbered available mode
85
86 keep
87 Keep the mode selected by firmware (the default)
88
89 editor
90 Takes a boolean argument. Enable (the default) or disable the
91 editor. The editor should be disabled if the machine can be
92 accessed by unauthorized persons.
93
94 auto-entries
95 Takes a boolean argument. Enable (the default) or disable entries
96 for other boot entries found on the boot partition. In particular,
97 this may be useful when loader entries are created to show
98 replacement descriptions for those entries.
99
100 auto-firmware
101 A boolean controlling the presence of the "Reboot into firmware"
102 entry (enabled by default). If this is disabled, the firmware
103 interface may still be reached by using the f key.
104
105 random-seed-mode
106 Takes one of "off", "with-system-token" and "always". If "off" no
107 random seed data is read off the ESP, nor passed to the OS. If
108 "with-system-token" (the default) systemd-boot will read a random
109 seed from the ESP (from the file /loader/random-seed) only if the
110 LoaderSystemToken EFI variable is set, and then derive the random
111 seed to pass to the OS from the combination. If "always" the boot
112 loader will do so even if LoaderSystemToken is not set. This mode
113 is useful in environments where protection against OS image reuse
114 is not a concern, and the random seed shall be used even with no
115 further setup in place. Use bootctl random-seed to initialize both
116 the random seed file in the ESP and the system token EFI variable.
117
118 See Random Seeds[1] for further information.
119
121 # /boot/efi/loader/loader.conf
122 timeout 0
123 default 01234567890abcdef1234567890abdf0-*
124 editor no
125
126
127 The menu will not be shown by default (the menu can still be shown by
128 pressing and holding a key during boot). One of the entries with files
129 with a name starting with "01234567890abcdef1234567890abdf0-" will be
130 selected by default. If more than one entry matches, the one with the
131 highest priority will be selected (generally the one with the highest
132 version number). The editor will be disabled, so it is not possible to
133 alter the kernel command line.
134
136 systemd-boot(7), bootctl(1)
137
139 1. Random Seeds
140 https://systemd.io/RANDOM_SEEDS
141
142
143
144systemd 250 LOADER.CONF(5)