~cloud-init-dev/cloud-init/trunk

  • 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?".
Filename Latest Rev Last Changed Committer Comment Size
..
cloud.cfg.d 364 13 years ago Scott Moser change from yaml+'#include' to yaml + config.d for Diff
cloud.cfg 1123.1.2 8 years ago Daniel Watkins Add DataSource.region and use it in mirror selecti 2.9 KB Diff Download File
cloud.cfg-freebsd 1023.1.3 9 years ago Harm Weites new: The Ec2 datasource works for FreeBSD as well. 1.9 KB Diff Download File