aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorJari <lihamakaroonilaatikko@gmail.com>2011-05-23 11:46:51 +0000
committerColin Guthrie <colin@mageia.org>2011-10-22 14:13:13 +0100
commitdfb9169154eaf272006ea5ad02c66b0241ae48a9 (patch)
treed1ea5da1ad1756da6f452593347a72c32b35c579 /rc.d
parentef6ece4b1291214c51294d3c5626cb393790ab43 (diff)
downloadinitscripts-dfb9169154eaf272006ea5ad02c66b0241ae48a9.tar
initscripts-dfb9169154eaf272006ea5ad02c66b0241ae48a9.tar.gz
initscripts-dfb9169154eaf272006ea5ad02c66b0241ae48a9.tar.bz2
initscripts-dfb9169154eaf272006ea5ad02c66b0241ae48a9.tar.xz
initscripts-dfb9169154eaf272006ea5ad02c66b0241ae48a9.zip
Limit the number of tries to unlock
Bug #1290
Diffstat (limited to 'rc.d')
-rw-r--r--rc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 4d02742f..6f989ba4 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -958,7 +958,7 @@ init_crypto() {
[ -n "$mount_point" ] || mount_point=${src##*/}
prompt=$(printf $"%s is password protected" "$mount_point")
if [ "$splash_rc" = yes ] && [ -d /usr/share/plymouth ]; then
- plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
+ plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" --number-of-tries=3 <&1
rc=$?
else
# stop splash to ask for password