Comment 9 for bug 874774

Revision history for this message
TJ (tj) wrote :

The failure is caused by the upstart and cryptsetup scripts trying to match the DEVNAME against /etc/crypttab entries that are in DEVLINKS format. E.g:

DEVNAME=/dev/dm-14
DEVLINKS=/dev/mapper/Ubuntut-Oneiric_var_encrypted /dev/Ubuntu/Oneiric_var_encrypted /dev/block/253:14

Upstart's "/etc/init/cryptdisks-udev.conf" passes the environment variable DEVNAME to crypttab_start_one_disk() in "/lib/cryptsetup/cryptdisks.functions".

Unless "/etc/crypttab" has an entry for "/dev/dm-14" the match will fail. It would be unwise to use /dev/dm-14" in 'crypttab' since the disk-mapper is dynamically allocated and could change.

I've fixed it with a few additional lines that tries to match against any of the DEVLINKS. I'll attach a patch and a debdiff here later once I've fixed some other bugs on that system.