]>
Commit | Line | Data |
---|---|---|
f37d3835 ZJS |
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"> | |
4 | ||
5 | <!-- SPDX-License-Identifier: LGPL-2.1+ --> | |
6 | ||
7 | <refentry id="sd-boot" conditional='ENABLE_EFI' | |
8 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
9 | <refentryinfo> | |
10 | <title>sd-boot</title> | |
11 | <productname>systemd</productname> | |
12 | ||
13 | <authorgroup> | |
14 | <author> | |
15 | <contrib>I wrote this page</contrib> | |
16 | <firstname>Zbigniew</firstname> | |
17 | <surname>Jędrzejewski-Szmek</surname> | |
18 | <email>zbyszek@in.waw.pl</email> | |
19 | </author> | |
20 | </authorgroup> | |
21 | </refentryinfo> | |
22 | ||
23 | <refmeta> | |
24 | <refentrytitle>sd-boot</refentrytitle> | |
25 | <manvolnum>7</manvolnum> | |
26 | </refmeta> | |
27 | ||
28 | <refnamediv> | |
29 | <refname>sd-boot</refname> | |
30 | <refpurpose>A simple UEFI boot manager</refpurpose> | |
31 | </refnamediv> | |
32 | ||
33 | <refsect1> | |
34 | <title>Description</title> | |
35 | ||
36 | <para><command>systemd-boot</command> or <command>sd-boot</command> is a simple | |
37 | UEFI boot manager, previously known as <command>gummiboot</command>. It provides | |
38 | a graphical menu to select the entry to boot and an editor for the kernel command | |
39 | line. sd-boot is only useful on machines using UEFI. | |
40 | </para> | |
41 | ||
42 | <para>sd-boot loads information from the EFI system partition (ESP), usually | |
43 | mounted at <filename>/boot</filename>, <filename>/efi</filename>, or | |
44 | <filename>/boot/efi</filename>. Configuration file fragments, kernels, initrds, | |
45 | other EFI images need to reside on the ESP. Linux kernels must be built with | |
46 | <option>CONFIG_EFI_STUB</option> to be able to be directly executed as an EFI | |
47 | image. sd-boot will automatically list other boot entries registered as EFI boot | |
48 | variables, and a list of kernels from configuration files following the <ulink | |
49 | url="https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec">Boot Loader | |
50 | Specification</ulink> located under <filename>/loader/entries/</filename> on the | |
51 | ESP.</para> | |
52 | ||
53 | <para><citerefentry><refentrytitle>kernel-install</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
54 | may be used to copy kernel images onto the ESP and to generate entries compliant | |
55 | with the Boot Loader Specification. | |
56 | <citerefentry><refentrytitle>bootctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> | |
57 | may be used from a running system to locate the ESP, list available entries, and | |
58 | install sd-boot itself.</para> | |
59 | ||
60 | <para>sd-boot will provide information about the time spent in UEFI firmware | |
61 | using the | |
62 | <ulink url="https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Boot Loader Interface</ulink>. | |
63 | This information can be displayed using | |
64 | <citerefentry><refentrytitle>systemd-analyze</refentrytitle><manvolnum>1</manvolnum></citerefentry>. | |
65 | </para> | |
66 | </refsect1> | |
67 | ||
68 | <refsect1> | |
69 | <title>Configuration</title> | |
70 | ||
71 | <para>sd-boot reads configuration like the timeout and default entry from | |
72 | <filename>/loader/loader.conf</filename> on the ESP and from EFI variables. See | |
73 | <citerefentry><refentrytitle>loader.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>. | |
74 | </para> | |
75 | </refsect1> | |
76 | ||
77 | <refsect1> | |
78 | <title>Key bindings</title> | |
79 | <para>The following keys may be used in the boot menu:</para> | |
80 | ||
81 | <variablelist> | |
82 | <varlistentry> | |
83 | <term>↑ (Up)</term> | |
84 | <term>↓ (Down)</term> | |
85 | <term>j</term> | |
86 | <term>k</term> | |
87 | <term>PageUp</term> | |
88 | <term>PageDown</term> | |
89 | <term>Home</term> | |
90 | <term>End</term> | |
91 | <listitem><para>Navigate up/down in the entry list</para></listitem> | |
92 | </varlistentry> | |
93 | ||
94 | <varlistentry> | |
95 | <term>↵ (Enter)</term> | |
96 | <listitem><para>Boot selected entry</para></listitem> | |
97 | </varlistentry> | |
98 | ||
99 | <varlistentry> | |
100 | <term>d</term> | |
101 | <listitem><para>Make selected entry the default</para></listitem> | |
102 | </varlistentry> | |
103 | ||
104 | <varlistentry> | |
105 | <term>e</term> | |
106 | <listitem><para>Edit the kernel command line for selected entry</para></listitem> | |
107 | </varlistentry> | |
108 | ||
109 | <varlistentry> | |
110 | <term>+</term> | |
111 | <term>t</term> | |
112 | <listitem><para>Increase the timeout before default entry is booted</para></listitem> | |
113 | </varlistentry> | |
114 | ||
115 | <varlistentry> | |
116 | <term>-</term> | |
117 | <term>T</term> | |
118 | <listitem><para>Decrease the timeout</para></listitem> | |
119 | </varlistentry> | |
120 | ||
121 | <varlistentry> | |
122 | <term>v</term> | |
123 | <listitem><para>Show sd-boot, UEFI, and firmware versions</para></listitem> | |
124 | </varlistentry> | |
125 | ||
126 | <varlistentry> | |
127 | <term>P</term> | |
128 | <listitem><para>Print status</para></listitem> | |
129 | </varlistentry> | |
130 | ||
131 | <varlistentry> | |
132 | <term>Q</term> | |
133 | <listitem><para>Quit</para></listitem> | |
134 | </varlistentry> | |
135 | ||
136 | <varlistentry> | |
137 | <term>h</term> | |
138 | <term>?</term> | |
139 | <listitem><para>Show a help screen</para></listitem> | |
140 | </varlistentry> | |
141 | ||
142 | <varlistentry> | |
143 | <term>Ctrl + l</term> | |
144 | <listitem><para>Reprint the screen</para></listitem> | |
145 | </varlistentry> | |
146 | </variablelist> | |
147 | ||
148 | <para>The following keys may be used during bootup or in the boot menu to | |
149 | directly boot a specific entry:</para> | |
150 | ||
151 | <variablelist> | |
152 | <varlistentry> | |
153 | <term>l</term> | |
154 | <listitem><para>Linux</para></listitem> | |
155 | </varlistentry> | |
156 | ||
157 | <varlistentry> | |
158 | <term>w</term> | |
159 | <listitem><para>Windows</para></listitem> | |
160 | </varlistentry> | |
161 | ||
162 | <varlistentry> | |
163 | <term>a</term> | |
164 | <listitem><para>OS X</para></listitem> | |
165 | </varlistentry> | |
166 | ||
167 | <varlistentry> | |
168 | <term>s</term> | |
169 | <listitem><para>EFI shell</para></listitem> | |
170 | </varlistentry> | |
171 | ||
172 | <varlistentry> | |
173 | <term>1</term> | |
174 | <term>2</term> | |
175 | <term>3</term> | |
176 | <term>4</term> | |
177 | <term>5</term> | |
178 | <term>6</term> | |
179 | <term>7</term> | |
180 | <term>8</term> | |
181 | <term>9</term> | |
182 | <listitem><para>Entry number 1 .. 9</para></listitem> | |
183 | </varlistentry> | |
184 | </variablelist> | |
185 | ||
186 | <para>In the editor, most keys simply insert themselves, but the following keys | |
187 | may be used to perform additional actions:</para> | |
188 | ||
189 | <variablelist> | |
190 | <varlistentry> | |
191 | <term>← (Left)</term> | |
192 | <term>→ (Right)</term> | |
193 | <term>Home</term> | |
194 | <term>End</term> | |
195 | <listitem><para>Navigate left/right</para></listitem> | |
196 | </varlistentry> | |
197 | ||
198 | <varlistentry> | |
199 | <term>Esc</term> | |
200 | <listitem><para>Abort the edit and quit the editor</para></listitem> | |
201 | </varlistentry> | |
202 | ||
203 | <varlistentry> | |
204 | <term>Ctrl + k</term> | |
205 | <listitem><para>Clear the command line</para></listitem> | |
206 | </varlistentry> | |
207 | ||
208 | <varlistentry> | |
209 | <term>Ctrl + w</term> | |
210 | <term>Alt + Backspace</term> | |
211 | <listitem><para>Delete word backwards</para></listitem> | |
212 | </varlistentry> | |
213 | ||
214 | <varlistentry> | |
215 | <term>Alt + d </term> | |
216 | <listitem><para>Delete word forwards</para></listitem> | |
217 | </varlistentry> | |
218 | ||
219 | <varlistentry> | |
220 | <term>↵ (Enter)</term> | |
221 | <listitem><para>Boot entry with the edited command line</para></listitem> | |
222 | </varlistentry> | |
223 | </variablelist> | |
224 | ||
225 | <para>Note that unless configured otherwise in the UEFI firmware, sd-boot will | |
226 | use the US keyboard layout, so key labels might not match for keys like +/-. | |
227 | </para> | |
228 | </refsect1> | |
229 | ||
230 | <refsect1> | |
231 | <title>See Also</title> | |
232 | <para> | |
233 | <citerefentry><refentrytitle>bootctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
234 | <citerefentry><refentrytitle>loader.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
235 | <ulink url="https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec">Boot Loader Specification</ulink>, | |
236 | <ulink url="https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Boot Loader Interface</ulink>, | |
237 | <ulink url="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/">upstream wiki page</ulink> | |
238 | </para> | |
239 | </refsect1> | |
240 | </refentry> |