Comment 8 for bug 1086646

Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 1086646] Re: text/x-shellscript doesn't run if text/cloud-boothook present

On Fri, 7 Dec 2012, DaveQB wrote:

> Yes actually I did fix that in a later boothook, but this is after I
> went with the all-in-one boothook (that injects into rc.local to run a
> shell script once network was up)
>
> I see. So messing with the cloud.cfg broke the system. My bad.
>
> Thanks for the time Scott and sorry for sending you on a wild goose chase.
> That info on making a "preserve-hostname.cfg" and "apt_preserve_sources_list" file is brilliant!! Exactly what I need. I didn't come across this in docos. Any links to this to what I have missed reading?

Probably not. :-(
Generally, though the config parsing goes:
 * /etc/cloud/cloud.cfg
 * /etc/cloud/cloud.cfg.d/*.cfg # in C locale sorted order
 * user-data-cloud-config , parsed in order seen.

fwiw, under bug 1023179, we're hoping to make the "merge cloud-config"
more sane. Right now, it basically only overrides. Ie, if 2 files have
'runcmd' defined, the last one wins.