Reinhard, correct me if I'm wrong but isn't the init.d call to
cryptdisks.functions already in the rootfs instead of the initramfs?

I'm running gutsy, and this configuration works fine:

$ cat /etc/crypttab 
croot32         /dev/sda11      none    luks,cipher=aes-cbc-essiv:sha256
chome32 /dev/sda12      none    luks,cipher=aes-cbc-essiv:sha256
cvar32          /dev/sda13      /cvarfile       luks,cipher=aes-cbc-essiv:sha256
cswap           /dev/sda6       /dev/urandom    swap
$ cat /etc/fstab
/dev/mapper/croot32 / ext3 defaults,errors=remount-ro 0 1
LABEL=cvar32 /var ext3 defaults 0 1
LABEL=chome32 /home ext3 defaults 0 1
/dev/mapper/cswap none swap sw 0 0

The only patch I use is for usplash:
--snip--
--- /lib/cryptsetup/cryptdisks.functions        2007-09-23 16:29:57.000000000 
+0200
+++ /lib/cryptsetup/cryptdisks.functions        2007-09-23 16:29:57.000000000 
+0200
@@ -271,11 +271,15 @@
                        cryptsetup $PARAMS luksOpen $src $dst <&1
                else
                        if [ -x /sbin/usplash_write -a -p 
/dev/.initramfs/usplash_outfifo ]; then
-                               /sbin/usplash_write "QUIT"
-                               # saftey sleep !
-                               sleep 2
+                               while [ "$tried" -lt "$TRIES" ]; do
+                                       usplash_write "INPUTQUIET Enter 
password for $dst ($src): "
+                                       PASS="$(cat 
/dev/.initramfs/usplash_outfifo)"
+                                       echo -n "$PASS" | cryptsetup $PARAMS 
luksOpen $src $dst > /dev/null 2>&1 &&  break
+                                       tried=$(( $tried +1 ))
+                               done
+                       else
+                               cryptsetup $PARAMS luksOpen $src $dst <&1
                        fi
-                       cryptsetup $PARAMS luksOpen $src $dst <&1
                fi
        fi
 
--snip--

Hope that helps.

-- 
Upstart doesn't activate luks volumes (also non luks) in cryptsetup
https://bugs.launchpad.net/bugs/62751
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to