Merge ~tribaal/cloud-init:dont-overwrite-etc-hosts-in-example into cloud-init:master

Proposed by Chris Glass
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)
Reviewer Review Type Date Requested Status
Dan Watkins Approve
Review via email: mp+310043@code.staging.launchpad.net

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.

To post a comment you must log in.
Revision history for this message
Dan Watkins (oddbloke) :
review: Approve
Revision history for this message
Scott Moser (smoser) wrote :

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..

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches