]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
cryptoroot-ask: limit number of plymouth password requests
authorAndrey Borzenkov <arvidjaar@gmail.com>
Fri, 11 Mar 2011 10:44:02 +0000 (11:44 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 11 Mar 2011 10:44:02 +0000 (11:44 +0100)
Set number ot retries to 5 to align with non-plymouth case.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
modules.d/90crypt/cryptroot-ask.sh

index 9c99ccccd247c0073bf21dfc5c503f4e8b07c6f5..4a65c23b0739108be1bd859536e8d3faff2c9c11 100755 (executable)
@@ -92,7 +92,7 @@ else
         # flock against other interactive activities
         { flock -s 9; 
             /bin/plymouth ask-for-password \
-                --prompt "$prompt" \
+                --prompt "$prompt" --number-of-tries=5 \
                 --command="/sbin/cryptsetup luksOpen -T1 $device $luksname"
         } 9>/.console.lock