Blame SOURCES/0012-ignore-empty-and-comment-lines-in-crypttab.patch

edfe8b
--- clevis-15.ori/src/luks/clevis-luks-common-functions	2023-01-11 11:11:03.050262054 +0100
edfe8b
+++ clevis-15/src/luks/clevis-luks-common-functions	2023-01-11 11:19:16.004358405 +0100
edfe8b
@@ -413,7 +413,12 @@
edfe8b
     clevis_devices=
edfe8b
 
edfe8b
     # Build list of devices to unlock.
edfe8b
-    while read -r _ crypt_device _; do
edfe8b
+    while read -r _volname_ crypt_device _; do
edfe8b
+        # skip empty lines and lines which begin with the '#' char, per
edfe8b
+        # crypttab(5)
edfe8b
+        case $_volname_ in
edfe8b
+            ''|\#*) continue ;;
edfe8b
+        esac
edfe8b
         if ! dev=$(clevis_map_device "${crypt_device}") \
edfe8b
                    || [ -z "${dev}" ]; then
edfe8b
             # Unable to get the device - maybe it's not available, e.g. a