summaryrefslogtreecommitdiffstats
path: root/abs/core/plymouth/encrypt_hook.patch
blob: a00a160c553afb4762925c37b4ff69e2dd025416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- encrypt_hooka	2012-07-15 11:17:04.000000000 +0300
+++ encrypt_hook	2012-07-15 11:32:59.258648852 +0300
@@ -73,13 +73,10 @@
             fi
             # Ask for a passphrase
             if [ ${dopassphrase} -gt 0 ]; then
-                echo ""
+                echo
                 echo "A password is required to access the ${cryptname} volume:"
-
-                #loop until we get a real password
-                while ! eval cryptsetup luksOpen ${resolved} ${cryptname} ${cryptargs} ${CSQUIET}; do
-                    sleep 2;
-                done
+                plymouth ask-for-password --prompt="Password for ${cryptname} volume" --dont-pause-progress --number-of-tries=5 --command="/sbin/cryptsetup luksOpen --key-file=- ${cryptdev} ${cryptname} ${CSQUIET}"
+                sleep 2
             fi
             if [ -e "/dev/mapper/${cryptname}" ]; then
                 if [ ${DEPRECATED_CRYPT} -eq 1 ]; then