]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: add missing options to systemd-cryptenroll
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 15 Sep 2022 08:15:44 +0000 (10:15 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 15 Sep 2022 12:40:23 +0000 (13:40 +0100)
shell-completion/bash/systemd-cryptenroll

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