Skip to content

Commit 2ad7027

Browse files
x-qqx-qq
andauthored
clevis-luks-askpass: allow non-block-device volumes (#527)
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. Co-authored-by: x-qq <the@interwebs.test>
1 parent 0317bf3 commit 2ad7027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/luks/systemd/clevis-luks-askpass.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ while true; do
5050
esac
5151
done < "$question"
5252

53-
[ -b "${d}" ] || continue
53+
[ -e "${d}" ] || continue
5454
[ -S "${s}" ] || continue
5555

5656
if ! pt="$(clevis_luks_unlock_device "${d}")" || [ -z "${pt}" ]; then

0 commit comments

Comments
 (0)