~smoser/ubuntu/quantal/cloud-init/sru

Viewing all changes in revision 234.

  • Committer: Scott Moser
  • Date: 2012-12-05 22:05:48 UTC
  • Revision ID: smoser@ubuntu.com-20121205220548-ibqx29a3rveacuay
update lp-1076811-fix-userdata-update-to-distro-config.patch

The previous patch for this was not complete, as it left the
DataSourceNone without a distro.  I saw this inadvertantly when
testing the package.  To reproduce the issue, I did:

 * launch instance
 * echo "datasource_list: [ None ]" |
    sudo tee /etc/cloud/cloud.cfg.d/99-nocloud.cfg
 * sudo rm -Rf /var/lib/cloud
 * sudo cloud-init init --local ; sudo cloud-init init
   # the above will find the DataSourceNone
 * sudo cloud-init single --name=apt-configure --frequency=always
   # in 12.10 and prior:
   # sudo cloud-init single --name=apt-update-upgrade --frequency=always

This would have left cloud-init broken for using the DataSourceNone path
which is actually relied upon in some cases. (Ie, if you had no DataSource,
but had a runcmd in /etc/cloud.cfg.d you still want that to run.)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: