Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > aeb9b9a178b7cd0ecbd6bfcb358b9d5c > files > 28

mkinitrd-6.0.63-3mnb2.src.rpm

--- mkinitrd-6.0.63/mkinitrd.askpass	2008-09-12 20:12:07.000000000 +0200
+++ mkinitrd-6.0.63/mkinitrd	2008-10-02 00:22:07.000000000 +0200
@@ -1573,6 +1573,7 @@
 
 if [ $ncryptodevs -ne 0 ]; then
     inst /sbin/cryptsetup "$MNTIMAGE"
+    inst /usr/libexec/askpass "$MNTIMAGE" /sbin/askpass
 
     KEYTABLE=
     KEYMAP=
@@ -1735,8 +1736,9 @@
 
 emitcrypto()
 {
-    emit "echo Setting up disk encryption: $1"
-    emit "plymouth ask-for-password --command \"cryptsetup luksOpen $1 $2\""
+    #emit "echo Setting up disk encryption: $1"
+    #emit "plymouth ask-for-password --command \"cryptsetup luksOpen $1 $2\""
+    emit "askpass \"Enter passphrase to unlock the disk $1 ($2): \" /sbin/cryptsetup -T 1 --key-file=- luksOpen $1 $2"
 }
 
 if [ -n "$KEYMAP" ]; then