Skip to content

Commit f1c70ed

Browse files
nishalkulkarnibluca
authored andcommitted
shell-completion: Add completion in bootctl
Added new completion for `--make-machine-id-directory` provideds 3 options(yes no auto) Closes: systemd#22308
1 parent c3e7fba commit f1c70ed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

shell-completion/bash/bootctl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _bootctl() {
3232
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
3333
local -A OPTS=(
3434
[STANDALONE]='-h --help -p --print-esp-path -x --print-boot-path --version --no-variables --no-pager --graceful'
35-
[ARG]='--esp-path --boot-path'
35+
[ARG]='--esp-path --boot-path --make-machine-id-directory'
3636
)
3737

3838
if __contains_word "$prev" ${OPTS[ARG]}; then
@@ -45,6 +45,9 @@ _bootctl() {
4545
fi
4646
compopt -o filenames
4747
;;
48+
--make-machine-id-directory)
49+
comps="yes no auto"
50+
;;
4851
esac
4952
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
5053
return 0

shell-completion/zsh/_bootctl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ _arguments \
6969
'--boot-path=[Path to the $BOOT partition]:path:_directories' \
7070
{-p,--print-esp-path}'[Print path to the EFI system partition]' \
7171
{-x,--print-boot-path}'[Print path to the $BOOT partition]' \
72+
'--make-machine-id-directory=[Control creation and deletion of the top-level machine ID directory.]:options:(yes no auto)' \
7273
'--no-variables[Do not touch EFI variables]' \
7374
'--no-pager[Do not pipe output into a pager]' \
7475
'--graceful[Do not fail when locating ESP or writing fails]' \

0 commit comments

Comments
 (0)