diff options
Diffstat (limited to 'abs/core/plymouth/encrypt_hook.patch')
-rw-r--r-- | abs/core/plymouth/encrypt_hook.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core/plymouth/encrypt_hook.patch b/abs/core/plymouth/encrypt_hook.patch new file mode 100644 index 0000000..a00a160 --- /dev/null +++ b/abs/core/plymouth/encrypt_hook.patch @@ -0,0 +1,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 |