From 3abe491d6108a4f8b260901527ca1e398e4c4745 Mon Sep 17 00:00:00 2001 From: x-qq Date: Wed, 23 Jul 2025 14:34:18 +0300 Subject: [PATCH] clevis-luks-askpass: allow non-block-device volumes Change the check on the volume that's being unlocked from -b (checks for block device) to -e (checks if file exists). This allows the code to work on LUKS volumes that are stored in normal files. --- src/luks/systemd/clevis-luks-askpass.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luks/systemd/clevis-luks-askpass.in b/src/luks/systemd/clevis-luks-askpass.in index a6699c9d..cee62030 100755 --- a/src/luks/systemd/clevis-luks-askpass.in +++ b/src/luks/systemd/clevis-luks-askpass.in @@ -50,7 +50,7 @@ while true; do esac done < "$question" - [ -b "${d}" ] || continue + [ -e "${d}" ] || continue [ -S "${s}" ] || continue if ! pt="$(clevis_luks_unlock_device "${d}")" || [ -z "${pt}" ]; then