Blame SOURCES/clevis-7-nospam.patch

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