~smoser/cloud-utils/trunk.1741096

Viewing all changes in revision 317.

  • Committer: Scott Moser
  • Date: 2018-01-04 18:45:50 UTC
  • Revision ID: smoser@ubuntu.com-20180104184550-5y4v30v76786pudq
mount-image-callback: run blockdev and udevadm settle on nbd devices.

When we connect nbd devices, ensure that the kernel re-reads the partition
table information.  This ensures that the partition devices (nbd0p1, nbd0p2)
are correct when used later.

Also required then is a udevadm settle.

On xenial, the blockdev is needed, on newer releases some udev magic or
systemd handles it.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: