summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/90crypt/crypt-run-generator.sh3
-rwxr-xr-xmodules.d/90crypt/module-setup.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/modules.d/90crypt/crypt-run-generator.sh b/modules.d/90crypt/crypt-run-generator.sh
index 7842b3cb..a610d428 100755
--- a/modules.d/90crypt/crypt-run-generator.sh
+++ b/modules.d/90crypt/crypt-run-generator.sh
@@ -8,8 +8,9 @@ dev=$1
luks=$2
if [ -f /etc/crypttab ]; then
- while read l rest; do
+ while read l d rest; do
strstr "${l##luks-}" "${luks##luks-}" && exit 0
+ strstr "$d" "${luks##luks-}" && exit 0
done < /etc/crypttab
fi
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
index ac75f100..1e87559f 100755
--- a/modules.d/90crypt/module-setup.sh
+++ b/modules.d/90crypt/module-setup.sh
@@ -73,10 +73,10 @@ install() {
fi
done
done < /etc/crypttab > $initdir/etc/crypttab
- else
- for_each_host_dev_fs check_crypt
fi
+ for_each_host_dev_fs check_crypt
+
inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
inst_multiple -o \