]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: add missing --unlock-fido2-device to systemd-cryptenroll
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 25 Jan 2023 10:53:50 +0000 (11:53 +0100)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 25 Jan 2023 10:53:50 +0000 (11:53 +0100)
shell-completion/bash/systemd-cryptenroll

index 595381415912d1508b389042a70a613f2f72c287..66c6524fe8b4e803567503687bf93e5eeb0e69b3 100644 (file)
@@ -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:'
                 ;;