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

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