summaryrefslogtreecommitdiff
path: root/modules.d/90crypt/crypt-run-generator.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90crypt/crypt-run-generator.sh')
-rwxr-xr-xmodules.d/90crypt/crypt-run-generator.sh3
1 files changed, 2 insertions, 1 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