Blame SOURCES/clevis-7-nospam.patch

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