summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_bootctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-30 16:04:00 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-30 16:04:43 +0200
commit8f0a346a290d6f7bddca32a080d36c0a64ed77f6 (patch)
tree0e4ef2893a2e5a92eb7cc4a6f991037a13624629 /shell-completion/zsh/_bootctl
parentefi: add more logging for all EFI variable reads (diff)
downloadsystemd-8f0a346a290d6f7bddca32a080d36c0a64ed77f6.tar.xz
systemd-8f0a346a290d6f7bddca32a080d36c0a64ed77f6.zip
shell-completions: update bootctl
Entries in the completion lists are reordered to follow --help output: this makes it much easier to see what is missing.
Diffstat (limited to 'shell-completion/zsh/_bootctl')
-rw-r--r--shell-completion/zsh/_bootctl13
1 files changed, 12 insertions, 1 deletions
diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl
index a84601ae65..fc051bd87d 100644
--- a/shell-completion/zsh/_bootctl
+++ b/shell-completion/zsh/_bootctl
@@ -24,6 +24,13 @@ _bootctl_set-oneshot() {
_bootctl_comp_ids
}
+_bootctl_reboot-to-firmware() {
+ local -a _completions
+ _completions=( yes no )
+ typeset -U _completions
+ _describe 'possible values' _completions
+}
+
(( $+functions[_bootctl_commands] )) || _bootctl_commands()
{
local -a _bootctl_cmds
@@ -32,8 +39,11 @@ _bootctl_set-oneshot() {
"install:Install systemd-boot to the ESP and EFI variables"
"update:Update systemd-boot in the ESP and EFI variables"
"remove:Remove systemd-boot from the ESP and EFI variables"
- "random-seed:Initialize random seed in ESP and EFI variables"
"is-installed:Test whether systemd-boot is installed in the ESP"
+ "random-seed:Initialize random seed in ESP and EFI variables"
+ "systemd-efi-options:Query or set system options string in EFI variable"
+ "reboot-to-firmware:Query or set reboot-to-firmware EFI flag"
+ "list:List boot loader entries"
"set-default:Set the default boot loader entry"
"set-oneshot:Set the default boot loader entry only for the next boot"
)
@@ -59,4 +69,5 @@ _arguments \
{-x,--print-boot-path}'[Print path to the $BOOT partition]' \
'--no-variables[Do not touch EFI variables]' \
'--no-pager[Do not pipe output into a pager]' \
+ '--graceful[Do not fail when locating ESP or writing fails]' \
'*::bootctl command:_bootctl_commands'