~vorlon/cryptsetup/lp.874774

Viewing all changes in revision 183.

  • Committer: Steve Langasek
  • Date: 2012-04-14 01:27:07 UTC
  • Revision ID: steve.langasek@canonical.com-20120414012707-4v4v9hhbm6vlb2ix
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: