[projects/geninitrd] cryptsetup: Use 120s timeout when asking for password.
arekm
arekm at pld-linux.org
Tue Jun 7 08:36:53 CEST 2016
commit 8c1bff4fcc5f9c5c60aea7ab168a96c7d6e93470
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jun 7 08:36:48 2016 +0200
cryptsetup: Use 120s timeout when asking for password.
mod-luks.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mod-luks.sh b/mod-luks.sh
index 09e31d3..8e9bc46 100644
--- a/mod-luks.sh
+++ b/mod-luks.sh
@@ -157,7 +157,7 @@ luks_crypttab() {
done
IFS="$old_IFS"
- verbose "+ cryptsetup ${keyfile:+-d $keyfile} open --type luks $crypttab_opt '$src' '$dst'"
+ verbose "+ cryptsetup --timeout=120 ${keyfile:+-d $keyfile} open --type luks $crypttab_opt '$src' '$dst'"
add_linuxrc <<-EOF
debugshell
@@ -184,7 +184,7 @@ luks_crypttab() {
crypt_status=\$(cryptsetup \$cryptsetup_opt status '$dst')
if [ "\${crypt_status%%is inactive.}" != "\$crypt_status" ]; then
# is inactive
- cryptsetup \$cryptsetup_opt ${keyfile:+-d $keyfile} open --type luks $crypttab_opt "\$luksdev" '$dst' <&1
+ cryptsetup \$cryptsetup_opt ${keyfile:+-d $keyfile} --timeout 120 open --type luks $crypttab_opt "\$luksdev" '$dst' <&1
fi
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/8c1bff4fcc5f9c5c60aea7ab168a96c7d6e93470
More information about the pld-cvs-commit
mailing list