Skip to content

Commit

Permalink
Skip uninitialized devices in clevis-luks-askpass
Browse files Browse the repository at this point in the history
This silences some log spam when using clevis while also having some
non-clevis LUKS volumes in the same system.
  • Loading branch information
npmccallum committed Feb 13, 2018
1 parent 4d08407 commit c65fa3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/systemd/clevis-luks-askpass
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ while true; do

[ -z "$d" -o -z "$s" ] && continue

# If the device is not initialized, sliently skip it.
luksmeta test -d "$d" || continue

while read -r slot state uuid; do
[ "$state" != "active" ] && continue
[ "$uuid" != "$UUID" ] && continue
Expand Down

0 comments on commit c65fa3b

Please sign in to comment.