Merge ~tribaal/cloud-init:dont-overwrite-etc-hosts-in-example into cloud-init:master
Status: | Merged |
---|---|
Merged at revision: | 45aac92596a7615d93c7d5efe72d68995b18e597 |
Proposed branch: | ~tribaal/cloud-init:dont-overwrite-etc-hosts-in-example |
Merge into: | cloud-init:master |
Diff against target: |
11 lines (+1/-1) 1 file modified
doc/examples/cloud-config-boot-cmds.txt (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dan Watkins | Approve | ||
Review via email:
|
Commit message
Make the "command on first boot" example append to /etc/hosts instead of overwriting.
Description of the change
This branch simply fixes the "Run commands on first boot" example to append to /etc/hosts instead of overwriting it.
It's only an example, so hopefully people don't run it as-is, but it is probably good to have an accurate example.
This also served me as a learning experience to "kick the tires" for the contribution process, should the need to contribute further arise. Should my addition be wrong or misguided please feel free to close this merge request without further notice.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
fwiw, the '>' there was not significantly worse than the '>>'.
bootcmd run every boot
so every reboot, you'll add another entry in your /etc/hosts with the current path..