b7dbfb6f3e
6e48a1c: luks-edit: remove unnecessary 2>/dev/null 3f879a3: Avoid invalid message for clevis command e0e92f8: Fix typo in error messages 47b01ab: Improve boot performance by removing key check f5786d3: Notify error url on server connect fail f621575: luks: fix typo when adding a pending device 0589c14: luks: ignore empty & comment lines in crypttab 3bb852b: luks: define max entropy bits for pwmake Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
17 lines
708 B
Diff
17 lines
708 B
Diff
--- clevis-18.ori/src/luks/clevis-luks-common-functions.in 2022-12-16 11:23:23.982459214 +0100
|
|
+++ clevis-18/src/luks/clevis-luks-common-functions.in 2022-12-16 11:35:54.206644525 +0100
|
|
@@ -399,7 +399,12 @@
|
|
clevis_devices=
|
|
|
|
# Build list of devices to unlock.
|
|
- while read -r _ crypt_device _; do
|
|
+ while read -r _volname_ crypt_device _; do
|
|
+ # skip empty lines and lines which begin with the '#' char, per
|
|
+ # crypttab(5)
|
|
+ case $_volname_ in
|
|
+ ''|\#*) continue ;;
|
|
+ esac
|
|
if ! dev=$(clevis_map_device "${crypt_device}") \
|
|
|| [ -z "${dev}" ]; then
|
|
# Unable to get the device - maybe it's not available, e.g. a
|