> From my crypttab:
> # <target name> <source device> <key file> <options>
> chome /dev/sda5 none luks
> cswap /dev/sda2 /dev/urandom swap
> cdisk1 /dev/sda6 /home/metno.key luks
> 1. I expect to be asked for passphrase for the chome-disk.
> 2. Then the luks key for the cdisk1 should be found on the crypted home-disk.

That's not going to work, you have nothing in your configuration to tell
the cryptsetup upstart job that unlocking cdisk1 needs to wait until
/home is mounted before trying to decrypt the disk.  I think you're
going to need to use a key script for this (see crypttab(5) for
details).

> "swapon: /dev/mapper/cswap: swapon failed: Device or resource busy
> mountall: swapon /dev/mapper/cswap [2662] terminated with status 255

That looks like a valid, but unrelated bug; please open a new bug report
for this.

> Final: I am quite sure that i saw all working ok during one boot !

Without a keyscript, the order in which the cryptsetup operations are
handled is arbitrary, so that's possible if you typed your passphrase
really fast that time.

-- 
LUKS encrypted partition does not mount during boot
https://bugs.launchpad.net/bugs/544812
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to