Blame SOURCES/clevis-7-nospam.patch

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