Blame SOURCES/clevis-7-nospam.patch

d77600
From e5170e17cac33706836f8b24e0a88e49cd0a47ef Mon Sep 17 00:00:00 2001
d77600
From: Nathaniel McCallum <npmccallum@redhat.com>
d77600
Date: Tue, 13 Feb 2018 13:33:57 -0500
d77600
Subject: [PATCH] Skip uninitialized devices in clevis-luks-askpass
d77600
d77600
This silences some log spam when using clevis while also having some
d77600
non-clevis LUKS volumes in the same system.
d77600
---
d77600
 src/systemd/clevis-luks-askpass | 3 +++
d77600
 1 file changed, 3 insertions(+)
d77600
d77600
diff --git a/src/systemd/clevis-luks-askpass b/src/systemd/clevis-luks-askpass
d77600
index 6fe5269..93c59f4 100755
d77600
--- a/src/systemd/clevis-luks-askpass
d77600
+++ b/src/systemd/clevis-luks-askpass
d77600
@@ -47,6 +47,9 @@ while true; do
d77600
 
d77600
         [ -z "$d" -o -z "$s" ] && continue
d77600
 
d77600
+        # If the device is not initialized, sliently skip it.
d77600
+        luksmeta test -d "$d" || continue
d77600
+
d77600
         while read -r slot state uuid; do
d77600
             [ "$state" != "active" ] && continue
d77600
             [ "$uuid" != "$UUID" ] && continue
d77600
-- 
d77600
2.17.1
d77600