* Our swap creation can trigger udev change events, which means udev may be
holding the device open at the time we try to call 'dmsetup rename' and
cause the /subsequent/ events to be missed because of dmsetup creating
device nodes by hand. So call 'udevadm settle' before 'dmsetup rename',
to ensure blkid is out of the way first. This should ensure swap
partitions are found by mountall in a non-racy manner. LP: #874774.
-- Steve Langasek <email address hidden> Fri, 13 Apr 2012 20:23:21 -0700
This bug was fixed in the package cryptsetup - 2:1.4.1-2ubuntu4
---------------
cryptsetup (2:1.4.1-2ubuntu4) precise; urgency=low
* Our swap creation can trigger udev change events, which means udev may be
holding the device open at the time we try to call 'dmsetup rename' and
cause the /subsequent/ events to be missed because of dmsetup creating
device nodes by hand. So call 'udevadm settle' before 'dmsetup rename',
to ensure blkid is out of the way first. This should ensure swap
partitions are found by mountall in a non-racy manner. LP: #874774.
-- Steve Langasek <email address hidden> Fri, 13 Apr 2012 20:23:21 -0700