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

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