]>
Commit | Line | Data |
---|---|---|
1bc64d77 MM |
1 | <?xml version='1.0'?> <!--*-nxml-*--> |
2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
1bc64d77 MM |
4 | |
5 | <!-- | |
572eb058 ZJS |
6 | SPDX-License-Identifier: LGPL-2.1+ |
7 | ||
1bc64d77 | 8 | This file is part of systemd. |
1bc64d77 MM |
9 | --> |
10 | ||
dfdebb1b | 11 | <refentry id="bootctl" conditional='ENABLE_EFI' |
798d3a52 | 12 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
798d3a52 ZJS |
13 | <refentryinfo> |
14 | <title>bootctl</title> | |
15 | <productname>systemd</productname> | |
16 | ||
17 | <authorgroup> | |
18 | <author> | |
19 | <contrib>Developer</contrib> | |
20 | <firstname>Kay</firstname> | |
21 | <surname>Sievers</surname> | |
22 | <email>kay@vrfy.org</email> | |
23 | </author> | |
24 | </authorgroup> | |
25 | </refentryinfo> | |
26 | ||
27 | <refmeta> | |
28 | <refentrytitle>bootctl</refentrytitle> | |
29 | <manvolnum>1</manvolnum> | |
30 | </refmeta> | |
31 | ||
32 | <refnamediv> | |
33 | <refname>bootctl</refname> | |
34 | <refpurpose>Control the firmware and boot manager settings</refpurpose> | |
35 | </refnamediv> | |
36 | ||
37 | <refsynopsisdiv> | |
38 | <cmdsynopsis> | |
fdc1af0a | 39 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> status</command> |
0974a682 | 40 | </cmdsynopsis> |
7e87c7d9 ZJS |
41 | <cmdsynopsis> |
42 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> list</command> | |
43 | </cmdsynopsis> | |
0974a682 | 44 | <cmdsynopsis> |
fdc1af0a | 45 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> update</command> |
0974a682 KS |
46 | </cmdsynopsis> |
47 | <cmdsynopsis> | |
fdc1af0a | 48 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> install</command> |
0974a682 KS |
49 | </cmdsynopsis> |
50 | <cmdsynopsis> | |
fdc1af0a | 51 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> remove</command> |
798d3a52 ZJS |
52 | </cmdsynopsis> |
53 | </refsynopsisdiv> | |
54 | ||
55 | <refsect1> | |
56 | <title>Description</title> | |
57 | ||
f37d3835 ZJS |
58 | <para><command>bootctl</command> can check the EFI boot loader status, list |
59 | available entries, and install, update, or remove the | |
60 | <citerefentry><refentrytitle>sd-boot</refentrytitle><manvolnum>7</manvolnum></citerefentry> | |
61 | boot loader on the current system.</para> | |
0974a682 | 62 | |
f37d3835 ZJS |
63 | <para><command>bootctl status</command> shows the currently installed versions of |
64 | the boot loader binaries and all current EFI boot variables.</para> | |
0974a682 | 65 | |
7e87c7d9 ZJS |
66 | <para><command>bootctl list</command> displays all configured boot loader entries. |
67 | </para> | |
68 | ||
f37d3835 ZJS |
69 | <para><command>bootctl update</command> updates all installed versions of |
70 | <citerefentry><refentrytitle>sd-boot</refentrytitle><manvolnum>7</manvolnum></citerefentry>, | |
71 | if the current version is newer than the version installed in the EFI system | |
72 | partition. This also includes the EFI default/fallback loader at | |
73 | <filename><replaceable>ESP</replaceable>/EFI/BOOT/BOOT*.EFI</filename>. A | |
74 | systemd-boot entry in the EFI boot variables is created if there is no current | |
75 | entry. The created entry will be added to the end of the boot order list.</para> | |
76 | ||
77 | <para><command>bootctl install</command> installs systemd-boot into the EFI | |
78 | system partition. A copy of systemd-boot will be stored as the EFI | |
79 | default/fallback loader at | |
80 | <filename><replaceable>ESP</replaceable>/EFI/BOOT/BOOT*.EFI</filename>. A | |
81 | systemd-boot entry in the EFI boot variables is created and added to the top of | |
82 | the boot order list.</para> | |
83 | ||
84 | <para><command>bootctl remove</command> removes all installed versions of | |
85 | systemd-boot from the EFI system partition, and removes systemd-boot from the EFI | |
86 | boot variables.</para> | |
87 | ||
88 | <para>If no command is passed, <command>status</command> is implied.</para> | |
798d3a52 ZJS |
89 | </refsect1> |
90 | ||
91 | <refsect1> | |
92 | <title>Options</title> | |
798d3a52 ZJS |
93 | <para>The following options are understood:</para> |
94 | ||
95 | <variablelist> | |
96 | <xi:include href="standard-options.xml" xpointer="help" /> | |
97 | <xi:include href="standard-options.xml" xpointer="version" /> | |
798d3a52 | 98 | <varlistentry> |
2f2c539c LP |
99 | <term><option>--path=</option></term> |
100 | <listitem><para>Path to the EFI System Partition (ESP). If not specified, <filename>/efi</filename>, | |
101 | <filename>/boot</filename>, and <filename>/boot/efi</filename> are checked in turn. It is recommended to mount | |
102 | the ESP to <filename>/boot</filename>, if possible.</para></listitem> | |
0974a682 | 103 | </varlistentry> |
798d3a52 | 104 | |
30b50477 ZJS |
105 | <varlistentry> |
106 | <term><option>-p</option></term> | |
107 | <term><option>--print-path</option></term> | |
108 | <listitem><para>This option modifies the behaviour of <command>status</command>. | |
109 | Just print the path to the EFI System Partition (ESP) to standard output and | |
110 | exit.</para></listitem> | |
111 | </varlistentry> | |
112 | ||
0974a682 KS |
113 | <varlistentry> |
114 | <term><option>--no-variables</option></term> | |
115 | <listitem><para>Do not touch the EFI boot variables.</para></listitem> | |
798d3a52 ZJS |
116 | </varlistentry> |
117 | </variablelist> | |
798d3a52 ZJS |
118 | </refsect1> |
119 | ||
120 | <refsect1> | |
121 | <title>Exit status</title> | |
b938cb90 | 122 | <para>On success, 0 is returned, a non-zero failure |
0974a682 | 123 | code otherwise.</para> |
798d3a52 ZJS |
124 | </refsect1> |
125 | ||
126 | <refsect1> | |
127 | <title>See Also</title> | |
128 | <para> | |
f37d3835 ZJS |
129 | <citerefentry><refentrytitle>sd-boot</refentrytitle><manvolnum>7</manvolnum></citerefentry>, |
130 | <ulink url="https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec">Boot Loader Specification</ulink>, | |
131 | <ulink url="https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Boot Loader Interface</ulink> | |
798d3a52 ZJS |
132 | </para> |
133 | </refsect1> | |
1bc64d77 | 134 | </refentry> |