]>
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 | <!-- | |
6 | This file is part of systemd. | |
7 | ||
8 | systemd is free software; you can redistribute it and/or modify it | |
9 | under the terms of the GNU Lesser General Public License as published by | |
10 | the Free Software Foundation; either version 2.1 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | systemd is distributed in the hope that it will be useful, but | |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | Lesser General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU Lesser General Public License | |
19 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
20 | --> | |
21 | ||
dfdebb1b | 22 | <refentry id="bootctl" conditional='ENABLE_EFI' |
798d3a52 | 23 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
798d3a52 ZJS |
24 | <refentryinfo> |
25 | <title>bootctl</title> | |
26 | <productname>systemd</productname> | |
27 | ||
28 | <authorgroup> | |
29 | <author> | |
30 | <contrib>Developer</contrib> | |
31 | <firstname>Kay</firstname> | |
32 | <surname>Sievers</surname> | |
33 | <email>kay@vrfy.org</email> | |
34 | </author> | |
35 | </authorgroup> | |
36 | </refentryinfo> | |
37 | ||
38 | <refmeta> | |
39 | <refentrytitle>bootctl</refentrytitle> | |
40 | <manvolnum>1</manvolnum> | |
41 | </refmeta> | |
42 | ||
43 | <refnamediv> | |
44 | <refname>bootctl</refname> | |
45 | <refpurpose>Control the firmware and boot manager settings</refpurpose> | |
46 | </refnamediv> | |
47 | ||
48 | <refsynopsisdiv> | |
49 | <cmdsynopsis> | |
fdc1af0a | 50 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> status</command> |
0974a682 KS |
51 | </cmdsynopsis> |
52 | <cmdsynopsis> | |
fdc1af0a | 53 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> update</command> |
0974a682 KS |
54 | </cmdsynopsis> |
55 | <cmdsynopsis> | |
fdc1af0a | 56 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> install</command> |
0974a682 KS |
57 | </cmdsynopsis> |
58 | <cmdsynopsis> | |
fdc1af0a | 59 | <command>bootctl <arg choice="opt" rep="repeat">OPTIONS</arg> remove</command> |
798d3a52 ZJS |
60 | </cmdsynopsis> |
61 | </refsynopsisdiv> | |
62 | ||
63 | <refsect1> | |
64 | <title>Description</title> | |
65 | ||
0974a682 KS |
66 | <para><command>bootctl</command> checks, updates, |
67 | installs or removes the boot loader from the current | |
68 | system.</para> | |
69 | ||
70 | <para><command>bootctl status</command> checks and prints the | |
a8eaaee7 | 71 | currently installed versions of the boot loader binaries and |
0974a682 KS |
72 | all current EFI boot variables.</para> |
73 | ||
617eec34 LP |
74 | <para><command>bootctl update</command> updates all installed versions of systemd-boot, if the current version is |
75 | newer than the version installed in the EFI system partition. This also includes the EFI default/fallback loader at | |
76 | <filename>/EFI/BOOT/BOOT*.EFI</filename>. A systemd-boot entry in the EFI boot variables is created if there is no | |
77 | current entry. The created entry will be added to the end of the boot order list.</para> | |
78 | ||
79 | <para><command>bootctl install</command> installs systemd-boot into the EFI system partition. A copy of | |
80 | systemd-boot will be stored as the EFI default/fallback loader at <filename>/EFI/BOOT/BOOT*.EFI</filename>. A | |
81 | systemd-boot entry in the EFI boot variables is created and added to the top of the boot order list.</para> | |
0974a682 KS |
82 | |
83 | <para><command>bootctl remove</command> removes all installed | |
e7dd673d TG |
84 | versions of systemd-boot from the EFI system partition, and removes |
85 | systemd-boot from the EFI boot variables.</para> | |
0974a682 | 86 | |
b938cb90 | 87 | <para>If no command is passed, <command>status</command> is |
0974a682 | 88 | 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 | |
0974a682 KS |
105 | <varlistentry> |
106 | <term><option>--no-variables</option></term> | |
107 | <listitem><para>Do not touch the EFI boot variables.</para></listitem> | |
798d3a52 ZJS |
108 | </varlistentry> |
109 | </variablelist> | |
798d3a52 ZJS |
110 | </refsect1> |
111 | ||
112 | <refsect1> | |
113 | <title>Exit status</title> | |
b938cb90 | 114 | <para>On success, 0 is returned, a non-zero failure |
0974a682 | 115 | code otherwise.</para> |
798d3a52 ZJS |
116 | </refsect1> |
117 | ||
118 | <refsect1> | |
119 | <title>See Also</title> | |
120 | <para> | |
28a0ad81 DR |
121 | <ulink url="https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec">Boot loader specification</ulink> |
122 | <ulink url="https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Systemd boot loader interface</ulink> | |
798d3a52 ZJS |
123 | </para> |
124 | </refsect1> | |
1bc64d77 | 125 | </refentry> |