diff options
author | Luca Boccassi <bluca@debian.org> | 2022-06-13 01:01:02 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-07-08 17:58:15 +0200 |
commit | 80a2381d5c156cffedf41a3e7b95f7a00045a0fd (patch) | |
tree | c84b84deb3bb654c3d40cdd14f19293e474a49ad /shell-completion/bash/bootctl | |
parent | Merge pull request #23396 from msekletar/fix-idle-action-lock (diff) | |
download | systemd-80a2381d5c156cffedf41a3e7b95f7a00045a0fd.tar.xz systemd-80a2381d5c156cffedf41a3e7b95f7a00045a0fd.zip |
bootctl: add --root and --image
Operate on image/directory, and also take files to install from it
Diffstat (limited to 'shell-completion/bash/bootctl')
-rw-r--r-- | shell-completion/bash/bootctl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl index 9214af5350..fd71cffe3f 100644 --- a/shell-completion/bash/bootctl +++ b/shell-completion/bash/bootctl @@ -32,7 +32,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' - [ARG]='--esp-path --boot-path --make-machine-id-directory' + [ARG]='--esp-path --boot-path --make-machine-id-directory --root --image' ) if __contains_word "$prev" ${OPTS[ARG]}; then @@ -48,6 +48,10 @@ _bootctl() { --make-machine-id-directory) comps="yes no auto" ;; + --image|--root) + compopt -o nospace + comps=$( compgen -A file -- "$cur" ) + ;; esac COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) return 0 |