From 82ff978d0bae4ac79b69d30a9c146a0cbd961fba Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 15 Sep 2022 10:15:44 +0200 Subject: [PATCH] bash-completion: add missing options to systemd-cryptenroll --- shell-completion/bash/systemd-cryptenroll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemd-cryptenroll b/shell-completion/bash/systemd-cryptenroll index 132cf27f314..59538141591 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:' ;; -- 2.47.3