summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-04-28 16:44:40 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-04-28 16:44:40 +0200
commit76c068b77cd75d1ec082b3a67bea7098daefd2f1 (patch)
tree7135ba32676bbc9021280d2e866a2d3647a7d7da
parent4d620b90d9af5fcb08800b74a209d2755b3da1c7 (diff)
downloadsystemd-76c068b77cd75d1ec082b3a67bea7098daefd2f1.tar.gz
man: cross-advertize bootctl and systemctl boot loader support
-rw-r--r--TODO1
-rw-r--r--man/bootctl.xml23
-rw-r--r--man/systemctl.xml18
3 files changed, 32 insertions, 10 deletions
diff --git a/TODO b/TODO
index 422ef68cd6..513fba09c5 100644
--- a/TODO
+++ b/TODO
@@ -31,6 +31,7 @@ External:
* zsh shell completion:
- <command> <verb> -<TAB> should complete options, but currently does not
- systemctl add-wants,add-requires
+ - systemctl reboot --boot-loader-entry=
* systemctl status should know about 'systemd-analyze calendar ... --iterations='
* If timer has just OnInactiveSec=..., it should fire after a specified time
diff --git a/man/bootctl.xml b/man/bootctl.xml
index 4aab53ece1..99cef4c00a 100644
--- a/man/bootctl.xml
+++ b/man/bootctl.xml
@@ -62,7 +62,12 @@
boolean argument which controls whether to show the firmware setup on next system reboot. If the
argument is omitted shows the current status of the flag, or whether the flag is supported. This
controls the same flag as <command>systemctl reboot --firmware-setup</command>, but is more low-level
- and allows setting the flag independently from actually requesting a reboot.</para></listitem>
+ and allows setting the flag independently from actually requesting a reboot.</para>
+
+ <para>Hint: use <command>systemctl reboot --firmware-setup</command> to reboot into firmware setup
+ once. See
+ <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ for details.</para></listitem>
</varlistentry>
<varlistentry>
@@ -107,7 +112,10 @@
pattern as argument. The <option>set-oneshot</option> command will set the default entry only for the next boot,
the <option>set-default</option> will set it persistently for all future boots.</para>
- <para>Optionally, the boot loader entry ID may be specified as one of: <option>@default</option>,
+ <para><command>bootctl list</command> can be used to list available boot loader entries and their
+ IDs.</para>
+
+ <para>In addition, the boot loader entry ID may be specified as one of: <option>@default</option>,
<option>@oneshot</option> or <option>@current</option>, which correspond to the current default boot loader
entry for all future boots, the current default boot loader entry for the next boot, and the currently booted
boot loader entry. These special IDs are resolved to the current values of the EFI variables
@@ -120,8 +128,15 @@
<para>If set to <option>@saved</option> the chosen entry will be saved as an EFI variable
on every boot and automatically selected the next time the boot loader starts.</para>
- <para>When an empty string ("") is specified as an ID, then the corresponding EFI variable will be unset.
- </para></listitem>
+ <para>When an empty string ("") is specified as the ID, then the corresponding EFI variable will be
+ unset.</para>
+
+ <para>Hint: use <command>systemctl reboot --boot-loader-entry=<replaceable>ID</replaceable></command>
+ to reboot into a specific boot entry and
+ <command>systemctl reboot --boot-loader-menu=<replaceable>timeout</replaceable></command>
+ to reboot into the boot loader menu once. See
+ <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ for details.</para></listitem>
</varlistentry>
<varlistentry>
diff --git a/man/systemctl.xml b/man/systemctl.xml
index d87c52685c..963eb9ec3a 100644
--- a/man/systemctl.xml
+++ b/man/systemctl.xml
@@ -1447,10 +1447,12 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
<term><command>reboot</command></term>
<listitem>
- <para>Shut down and reboot the system. This is mostly equivalent to <command>systemctl start reboot.target
- --job-mode=replace-irreversibly --no-block</command>, but also prints a wall message to all users. This
- command is asynchronous; it will return after the reboot operation is enqueued, without waiting for it to
- complete.</para>
+ <para>Shut down and reboot the system.</para>
+
+ <para>This command mostly equivalent to <command>systemctl start reboot.target
+ --job-mode=replace-irreversibly --no-block</command>, but also prints a wall message to all
+ users. This command is asynchronous; it will return after the reboot operation is enqueued,
+ without waiting for it to complete.</para>
<para>If combined with <option>--force</option>, shutdown of all running services is skipped, however all
processes are killed and all file systems are unmounted or mounted read-only, immediately followed by the
@@ -1463,6 +1465,10 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
<para>If the switch <option>--reboot-argument=</option> is given, it will be passed as the optional
argument to the <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
system call.</para>
+
+ <para>Options <option>--boot-loader-entry=</option>, <option>--boot-loader-menu=</option>, and
+ <option>--firmware-setup</option> can be used to select what to do <emphasis>after</emphasis> the
+ reboot. See the descriptions of those options for details.</para>
</listitem>
</varlistentry>
@@ -2249,7 +2255,7 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
</varlistentry>
<varlistentry>
- <term><option>--boot-loader-menu=</option></term>
+ <term><option>--boot-loader-menu=<replaceable>timeout</replaceable></option></term>
<listitem>
<para>When used with the <command>reboot</command> command, indicate to the system's boot loader to
@@ -2260,7 +2266,7 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
</varlistentry>
<varlistentry>
- <term><option>--boot-loader-entry=</option></term>
+ <term><option>--boot-loader-entry=<replaceable>ID</replaceable></option></term>
<listitem>
<para>When used with the <command>reboot</command> command, indicate to the system's boot loader to