bootctl: add @current/@oneshot/@default targets to set-default/set-oneshot
authorДамјан Георгиевски <gdamjan@gmail.com>
Tue, 13 Oct 2020 10:25:59 +0000 (12:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Oct 2020 13:02:58 +0000 (15:02 +0200)
commitc4b843473a75fb38ed5bf54e9d3cfb1cb3719efa
tree5cf4efd0077c38593b21b39b03e9b02be9670bb0
parent558e5654a51ddd32c47fd80d6f8fefb55d611c83
bootctl: add @current/@oneshot/@default targets to set-default/set-oneshot

Using `bootctl set-default @current` will set the default loader entry
to the currently booted entry as read from the `LoaderEntrySelected` EFI
variable.

Also `bootctl set-oneshot @current` will set the oneshot loader entry to
the current booted entry.

Correspondingly `@default` and `@oneshot` can be used to read from the
LoaderEntryDefault and LoaderEntryOneshot EFI variables.
man/bootctl.xml
src/boot/bootctl.c