Comment 37 for bug 62751

Revision history for this message
Swen Thümmler (swen-thuemmler) wrote : Re: Upstart doesn't activate luks volumes in cryptsetup

I have solved this issue for my crypted root filesystem by making the following modification to /usr/share/initramfs-tools/scripts/local-top/cryptroot:
--- cryptroot.orig 2006-11-12 12:31:08.000000000 +0100
+++ cryptroot 2006-11-12 12:30:41.000000000 +0100
@@ -160,7 +160,11 @@

 # Loop until we have a satisfactory password
 while [ 1 ]; do
- if [ -x "/sbin/cryptgetpw" ]; then
+ if [ -x "/sbin/usplash_write" -a -p /dev/.initramfs/usplash_outfifo ]; then
+ /sbin/usplash_write "INPUTQUIET Password:"
+ $cryptcreate < /dev/.initramfs/usplash_outfifo
+ /sbin/usplash_write "CLEAR"
+ elif [ -x "/sbin/cryptgetpw" ]; then
                /sbin/cryptgetpw < /dev/console | $cryptcreate
        else
                $cryptcreate < /dev/console

This works for me (in the 2 tests I have made :-)).
Hope this helps.

--Swen