cryptsetup: unset an unlock path on each unlock retry
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Jun 2024 11:53:55 +0000 (13:53 +0200)
committerLuca Boccassi <bluca@debian.org>
Tue, 4 Jun 2024 19:42:19 +0000 (20:42 +0100)
commit64f2e1ff05d210d7c0e62d8625e326d8d85911f0
tree06db7035a66e00e7b42c2a339457f8854efd7776
parent80159df741f92a7cd889c03574b2d7a112a2337b
cryptsetup: unset an unlock path on each unlock retry

If we couldn't unlock a device with the chosen unlock path, let's not
fall back to the lowest one right away, but only flush out one path, and
try the next.

Fixes: #30425
Follow-up-for: #30185
Alternative-to: #33183
src/cryptsetup/cryptsetup.c