diff options
author | James Meyer <james.meyer@operamail.com> | 2012-11-22 05:27:40 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-11-22 05:27:40 (GMT) |
commit | 30c6b3e359d4e8872a0ce6635593f362218c2511 (patch) | |
tree | c8517d4961b86e61021ae4dd1acec19ee21bf2af /abs/core/plymouth/encrypt_hook.patch | |
parent | 3d7f516c0b10ed95e270575ef6155d70c0c16114 (diff) | |
download | linhes_pkgbuild-30c6b3e359d4e8872a0ce6635593f362218c2511.zip linhes_pkgbuild-30c6b3e359d4e8872a0ce6635593f362218c2511.tar.gz linhes_pkgbuild-30c6b3e359d4e8872a0ce6635593f362218c2511.tar.bz2 |
plymouth: first build
refs #869
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 |