summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2023-01-25 11:53:50 +0100
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2023-01-25 11:53:50 +0100
commit4d206f1cf9799c4143b78d2b020dda4ab99a9e53 (patch)
treedb62063ac05f10aaea085afd66ee69e5e973e5e7 /shell-completion
parent903dd65b5eb63257393955cb79777beb8c71afc1 (diff)
downloadsystemd-4d206f1cf9799c4143b78d2b020dda4ab99a9e53.tar.gz
bash-completion: add missing --unlock-fido2-device to systemd-cryptenroll
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemd-cryptenroll4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell-completion/bash/systemd-cryptenroll b/shell-completion/bash/systemd-cryptenroll
index 5953814159..66c6524fe8 100644
--- a/shell-completion/bash/systemd-cryptenroll
+++ b/shell-completion/bash/systemd-cryptenroll
@@ -51,6 +51,7 @@ _systemd-cryptenroll() {
[STANDALONE]='-h --help --version
--password --recovery-key'
[ARG]='--unlock-key-file
+ --unlock-fido2-device
--pkcs11-token-uri
--fido2-credential-algorithm
--fido2-device
@@ -74,6 +75,9 @@ _systemd-cryptenroll() {
comps=$(compgen -A file -- "$cur")
compopt -o filenames
;;
+ --unlock-fido2-device)
+ comps="auto $(__get_fido2_devices)"
+ ;;
--pkcs11-token-uri)
comps='auto list pkcs11:'
;;