updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plymouth-git / encrypt_hook.patch
blobfa26ccb0b58895621d870a322c51acd63605ec15
1 --- encrypt_hook 2011-07-30 08:58:50.000000000 +0200
2 +++ encrypt_hook 2011-07-30 09:04:19.935861787 +0200
3 @@ -69,10 +69,9 @@
4 echo ""
5 echo "A password is required to access the ${cryptname} volume:"
7 - #loop until we get a real password
8 - while ! eval /sbin/cryptsetup luksOpen ${cryptdev} ${cryptname} ${CSQUIET}; do
9 - sleep 2;
10 - done
11 + 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}"
12 + sleep 2;
15 if [ -e "/dev/mapper/${cryptname}" ]; then
16 if [ ${DEPRECATED_CRYPT} -eq 1 ]; then