]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-boot: add auto-reboot and auto-poweroff entries 29440/head
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 4 Oct 2023 10:51:47 +0000 (11:51 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 6 Oct 2023 15:21:23 +0000 (16:21 +0100)
commitcb341090d061084accc9a45ec4b1d258954adba2
tree5915a4723b7368207c7f6d8ec87f7a5de2e5596e
parent28052aa8cd5ebebebeeccda88c045b5806cbc209
sd-boot: add auto-reboot and auto-poweroff entries

Currently only an auto-reboot-to-firmware entry is available. For other
features - like reboot and power off - one needs to press the uppercase
B and O respectively.

Embedded devices may be missing a full fledged keyboard, so allow for
sd-boot to generate those entries.

v2:
 - add to the config parser/man/bootctl/sd-boot info screen
 - keep them off by default
 - add the (O)ff and re(B)oot help text if boot entries are not shown
 - drop irrelevant get_os_indications_supported() comment
 - s/ShutDown/Shutdown/

v3:
 - cast shutdown_system() reboot_system() to void

v4:
 - shutdown -> poweroff
 - add trailing ",ignoring" in parser message
 - drop explicit default state assignment to "false"

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
man/loader.conf.xml
src/boot/efi/boot.c
src/shared/bootspec.c