summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2022-09-15 10:15:44 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-09-15 13:40:23 +0100
commit82ff978d0bae4ac79b69d30a9c146a0cbd961fba (patch)
treeedb086ecf1e6582df5a39efd58d3f2eb4f9d46ba /shell-completion
parentf539452505216f526eaef50b5a80d625952d3810 (diff)
downloadsystemd-82ff978d0bae4ac79b69d30a9c146a0cbd961fba.tar.gz
bash-completion: add missing options to systemd-cryptenroll
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemd-cryptenroll10
1 files changed, 9 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-cryptenroll b/shell-completion/bash/systemd-cryptenroll
index 132cf27f31..5953814159 100644
--- a/shell-completion/bash/systemd-cryptenroll
+++ b/shell-completion/bash/systemd-cryptenroll
@@ -50,7 +50,8 @@ _systemd-cryptenroll() {
local -A OPTS=(
[STANDALONE]='-h --help --version
--password --recovery-key'
- [ARG]='--pkcs11-token-uri
+ [ARG]='--unlock-key-file
+ --pkcs11-token-uri
--fido2-credential-algorithm
--fido2-device
--fido2-with-client-pin
@@ -58,6 +59,9 @@ _systemd-cryptenroll() {
--fido2-with-user-verification
--tpm2-device
--tpm2-pcrs
+ --tpm2-public-key
+ --tpm2-public-key-pcrs
+ --tpm2-signature
--tpm2-with-pin
--wipe-slot'
)
@@ -66,6 +70,10 @@ _systemd-cryptenroll() {
if __contains_word "$prev" ${OPTS[ARG]}; then
case $prev in
+ --unlock-key-file|--tpm2-public-key|--tpm2-signature)
+ comps=$(compgen -A file -- "$cur")
+ compopt -o filenames
+ ;;
--pkcs11-token-uri)
comps='auto list pkcs11:'
;;