An alternative to reading the password from console might be to use pam_mount, to mount the encrypted filesystem when the user logs in.
Here is a description of using pam_mount together with dmcrypt: http://deb.riseup.net/storage/encryption/dmcrypt/ -- Upstart doesn't activate luks volumes in cryptsetup https://launchpad.net/bugs/62751 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
