]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(crypt-gpg): do not use always --card-status
authorLinkTed <link.ted@mailbox.org>
Fri, 23 Dec 2022 19:16:31 +0000 (20:16 +0100)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Fri, 6 Jan 2023 20:07:49 +0000 (15:07 -0500)
commite3e8108eb75247249ec05eaba943c3f48637c04b
tree204c44a184a042ab7d5090ae7f6c9414083681f4
parentf6bb4a36b763ae6de0e1aee55bc95d3d3f3ec1e1
fix(crypt-gpg): do not use always --card-status

If no GPG smart card is used then the card-status breaks the decryption
of the keyfile. Therefore, use the card-status only if a smart card is
used to decrypt the keyfie.

Fixes issue #2004
modules.d/91crypt-gpg/crypt-gpg-lib.sh