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
</command>
29 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
30 <arg choice=
"req">COMMAND
</arg>
35 <title>Description
</title>
37 <para><command>bootctl
</command> can check the EFI boot loader status, list available boot loaders and boot loader
38 entries, and install, update, or remove the
39 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry> boot loader on the
40 current system.
</para>
44 <title>Options
</title>
45 <para>The following options are understood:
</para>
49 <term><option>--path=
</option></term>
50 <listitem><para>Path to the EFI System Partition (ESP). If not specified,
<filename>/efi
</filename>,
51 <filename>/boot
</filename>, and
<filename>/boot/efi
</filename> are checked in turn. It is recommended to mount
52 the ESP to
<filename>/boot
</filename>, if possible.
</para></listitem>
56 <term><option>-p
</option></term>
57 <term><option>--print-path
</option></term>
58 <listitem><para>This option modifies the behaviour of
<command>status
</command>.
59 Just print the path to the EFI System Partition (ESP) to standard output and
60 exit.
</para></listitem>
64 <term><option>--no-variables
</option></term>
65 <listitem><para>Do not touch the firmware's boot loader list stored in EFI variables.
</para></listitem>
68 <xi:include href=
"standard-options.xml" xpointer=
"no-pager"/>
69 <xi:include href=
"standard-options.xml" xpointer=
"help"/>
70 <xi:include href=
"standard-options.xml" xpointer=
"version"/>
75 <title>Commands
</title>
79 <term><option>status
</option></term>
81 <listitem><para>Shows brief information about the system firmware, the boot loader that was used to boot the
82 system, the boot loaders currently available in the ESP, the boot loaders listed in the firmware's list of boot
83 loaders and the current default boot loader entry. If no command is specified, this is the implied
84 default.
</para></listitem>
88 <term><option>list
</option></term>
90 <listitem><para>Shows all available boot loader entries implementing the
<ulink
91 url=
"https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md">Boot Loader
92 Specification
</ulink>.
</para></listitem>
96 <term><option>install
</option></term>
98 <listitem><para>Installs systemd-boot into the EFI system partition. A copy of
<command>systemd-boot
</command>
99 will be stored as the EFI default/fallback loader at
100 <filename><replaceable>ESP
</replaceable>/EFI/BOOT/BOOT*.EFI
</filename>. The boot loader is then added to the
101 top of the firmware's boot loader list.
</para></listitem>
105 <term><option>update
</option></term>
107 <listitem><para>Updates all installed versions of
108 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>, if the
109 available version is newer than the version installed in the EFI system partition. This also includes the EFI
110 default/fallback loader at
<filename><replaceable>ESP
</replaceable>/EFI/BOOT/BOOT*.EFI
</filename>. The boot
111 loader is then added to end of the firmware's boot loader list if missing.
</para></listitem>
115 <term><option>remove
</option></term>
117 <listitem><para>Removes all installed versions of
<command>systemd-boot
</command> from the EFI system partition
118 and the firmware's boot loader list.
</para></listitem>
125 <title>Exit status
</title>
126 <para>On success,
0 is returned, a non-zero failure code otherwise.
</para>
130 <title>Environment
</title>
131 <para>If
<varname>$SYSTEMD_RELAX_ESP_CHECKS=
1</varname> is set the validation checks for the ESP are relaxed, and
132 the path specified with
<option>--path=
</option> may refer to any kind of file system on any kind of
137 <title>See Also
</title>
139 <citerefentry><refentrytitle>systemd-boot
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
140 <ulink url=
"https://github.com/systemd/systemd/blob/master/docs/BOOT_LOADER_SPECIFICATION.md">Boot Loader Specification
</ulink>,
141 <ulink url=
"https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface">Boot Loader Interface
</ulink>