bootctl: add --random-seed=yes/no

This commit is contained in:
Ludwig Nussel
2024-06-20 14:26:13 +09:00
committed by Yu Watanabe
parent 8422d04e8d
commit 8ce171bf51
6 changed files with 31 additions and 4 deletions
+4 -1
View File
@@ -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