Description of problem: When I delete slot 1, write the "Key slot 0 removed." Why? Version-Release number of selected component (if applicable): cryptsetup 2.0.4 How reproducible: Steps to Reproduce: 1. sudo cryptsetup -v luksKillSlot /dev/sda5 1 Actual results: Keyslot 1 is selected for deletion. Enter any remaining passphrase: Key slot 0 unlocked. Key slot 0 removed. Command successful. Expected results: Keyslot 1 is selected for deletion. Enter any remaining passphrase: Key slot 0 unlocked. Key slot 1 removed. Command successful. Additional info: Sorry for my poor english!
Yes, it is a bug, it actually prints "removed keyslot 0" everytime in luksKillKeyslot, because it misinterprets exit code from crypt_keyslot_destroy(). But it is just error in message, code wipes the proper keyslot. Will be fixed in 2.0.5 (that will be released very soon), thanks!
This is the upstream commit fixing the issue https://gitlab.com/cryptsetup/cryptsetup/commit/7213d5a76bfcea01a531d2d39e0766fa4d92cb94
Thanks for your time!
cryptsetup-2.0.5-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8936092f99
cryptsetup-2.0.5-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8936092f99
cryptsetup-2.0.5-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.