summaryrefslogtreecommitdiffstats
path: root/shell-completion
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2024-04-17 11:30:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-06-20 07:26:13 +0200
commit8ce171bf51bebaf6184f41e5cbcf00e0edbe0762 (patch)
tree3d6d307480225c6efda0aeba7de9c6f4940e99f5 /shell-completion
parentMerge pull request #33420 from poettering/build-with-object (diff)
downloadsystemd-8ce171bf51bebaf6184f41e5cbcf00e0edbe0762.tar.xz
systemd-8ce171bf51bebaf6184f41e5cbcf00e0edbe0762.zip
bootctl: add --random-seed=yes/no
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/bootctl5
-rw-r--r--shell-completion/zsh/_bootctl1
2 files changed, 5 insertions, 1 deletions
diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl
index 45fcd502de..775cc45055 100644
--- a/shell-completion/bash/bootctl
+++ b/shell-completion/bash/bootctl
@@ -33,7 +33,7 @@ _bootctl() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
[STANDALONE]='-h --help -p --print-esp-path -x --print-boot-path --version --no-variables --no-pager --graceful --dry-run'
- [ARG]='--esp-path --boot-path --make-machine-id-directory --root --image --install-source'
+ [ARG]='--esp-path --boot-path --make-machine-id-directory --root --image --install-source --random-seed'
)
if __contains_word "$prev" ${OPTS[ARG]}; then
@@ -56,6 +56,9 @@ _bootctl() {
--install-source)
comps="image host auto"
;;
+ --random-seed)
+ comps="yes no"
+ ;;
esac
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
return 0
diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl
index f021978f5f..4082683372 100644
--- a/shell-completion/zsh/_bootctl
+++ b/shell-completion/zsh/_bootctl
@@ -83,4 +83,5 @@ _arguments \
'--root=[Operate under the specified directory]:PATH' \
'--image=[Operate on the specified image]:PATH' \
'--install-source[Where to pick files when using --root=/--image=]:options:(image host auto)' \
+ '--random-seed[Whether to create random-seed file during install]:options:(yes no)' \
'*::bootctl command:_bootctl_commands'