Comment 13 for bug 139057

Revision history for this message
Ben M. (bmhm) wrote :

Well, even with all the patches mentioned so far, you still have to type your password twice. A solution might be Novells approach on openSuSE 11.1: They add kernel options.

it goes like this:
$ cat /proc/cmdline
root=/dev/mapper/root luks_root=/dev/sda5
swap=/dev/mapper/swap luks_swap=/dev/sda2
home=/dev/mapper/home luks_home=/dev/sda6

Currently, ubuntu uses only root=. That's it. So So there is a script called cryptroot:
/usr/share/initramfs-tools/scripts/local-top/cryptroot

It should store the password in an environment variable and re-use it. Still, SuSEs approach is different, but it is also more complex and much uglier.

Hope that helps. Can some1 submit a patch?