Comment 9 for bug 493480

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Perhaps a silly question, but at the point that /dev/mapper/c_tmp is announced to the system - does it have a filesystem on it?

If cryptsetup doesn't call mke2fs until after creating the dm device with that name, then udev is told about the block device before the filesystem is created, so blkid returns no filesystem, so mountall will ignore it (if it didn't ignore it - it would fail to mount anyway).

(The two suggested workarounds would introduce enough of a delay that it might get away with it.)

This still leaves it as a cryptsetup bug, for announcing a block device without a filesystem and not following up with a "change" event when the block device is ready.