~harlowja/cloud-init/encode-resolve-fix

Viewing all changes in revision 1127.

  • Committer: Scott Moser
  • Date: 2015-07-22 19:17:10 UTC
  • mfrom: (1121.2.5 lp1411582)
  • Revision ID: smoser@ubuntu.com-20150722191710-i2d73higqmeiftfj
mounts: support reliably detecting and using Azure ephemeral disks

Azure's ephemeral disks are not guaranteed to be assigned the same name by
the kernel every boot. This causes problems on ~2% of Azure instances, and
can be fixed by using udev rules to give us a deterministic path to mount;
this patch introduces those udev rules and modifies the Azure data source
to use them.

Changes to a couple of config modules were also required. In some places,
they just needed to learn to dereference symlinks. In cc_mounts this
wasn't sufficient because the dereferenced device would have been put in
/etc/fstab (rather defeating the point of using the udev rules in the
first place). A fairly hefty refactor was required to separate "is this a
valid block device?" from "what shall I put in fstab?".

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: