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">
6 SPDX-License-Identifier: LGPL-2.1+
9 <refentry id=
"bootctl" conditional='ENABLE_EFI'
10 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
12 <title>bootctl
</title>
13 <productname>systemd
</productname>
17 <refentrytitle>bootctl
</refentrytitle>
18 <manvolnum>1</manvolnum>
22 <refname>bootctl
</refname>
23 <refpurpose>Control the firmware and boot manager settings
</refpurpose>
28 <command>bootctl
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> status
</command>
31 <command>bootctl
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> list
</command>
34 <command>bootctl
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> update
</command>
37 <command>bootctl
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> install
</command>
40 <command>bootctl
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> remove
</command>
45 <title>Description
</title>
47 <para><command>bootctl
</command> can check the EFI boot loader status, list
48 available entries, and install, update, or remove the
49 <citerefentry><refentrytitle>sd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>
50 boot loader on the current system.
</para>
52 <para><command>bootctl status
</command> shows the currently installed versions of
53 the boot loader binaries and all current EFI boot variables.
</para>
55 <para><command>bootctl list
</command> displays all configured boot loader entries.
58 <para><command>bootctl update
</command> updates all installed versions of
59 <citerefentry><refentrytitle>sd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
60 if the current version is newer than the version installed in the EFI system
61 partition. This also includes the EFI default/fallback loader at
62 <filename><replaceable>ESP
</replaceable>/EFI/BOOT/BOOT*.EFI
</filename>. A
63 systemd-boot entry in the EFI boot variables is created if there is no current
64 entry. The created entry will be added to the end of the boot order list.
</para>
66 <para><command>bootctl install
</command> installs systemd-boot into the EFI
67 system partition. A copy of systemd-boot will be stored as the EFI
68 default/fallback loader at
69 <filename><replaceable>ESP
</replaceable>/EFI/BOOT/BOOT*.EFI
</filename>. A
70 systemd-boot entry in the EFI boot variables is created and added to the top of
71 the boot order list.
</para>
73 <para><command>bootctl remove
</command> removes all installed versions of
74 systemd-boot from the EFI system partition, and removes systemd-boot from the EFI
75 boot variables.
</para>
77 <para>If no command is passed,
<command>status
</command> is implied.
</para>
81 <title>Options
</title>
82 <para>The following options are understood:
</para>
85 <xi:include href=
"standard-options.xml" xpointer=
"help" />
86 <xi:include href=
"standard-options.xml" xpointer=
"version" />
88 <term><option>--path=
</option></term>
89 <listitem><para>Path to the EFI System Partition (ESP). If not specified,
<filename>/efi
</filename>,
90 <filename>/boot
</filename>, and
<filename>/boot/efi
</filename> are checked in turn. It is recommended to mount
91 the ESP to
<filename>/boot
</filename>, if possible.
</para></listitem>
95 <term><option>-p
</option></term>
96 <term><option>--print-path
</option></term>
97 <listitem><para>This option modifies the behaviour of
<command>status
</command>.
98 Just print the path to the EFI System Partition (ESP) to standard output and
99 exit.
</para></listitem>
103 <term><option>--no-variables
</option></term>
104 <listitem><para>Do not touch the EFI boot variables.
</para></listitem>
110 <title>Exit status
</title>
111 <para>On success,
0 is returned, a non-zero failure
112 code otherwise.
</para>
116 <title>See Also
</title>
118 <citerefentry><refentrytitle>sd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
119 <ulink url=
"https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec">Boot Loader Specification
</ulink>,
120 <ulink url=
"https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Boot Loader Interface
</ulink>