Comment 2 for bug 812539

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

As per discussion in #ubuntu-server, the following revised patch adheres to debian policy [1] with regards to populating /etc/hosts.

In absence of a hostname provided by a cloud metadata source, cc_update_etc_hosts.py will query platform.node() and construct a fqdn with a ".localhost" domain for 127.0.1.1 in /etc/hosts.

1. https://one.ubuntu.com/files/shareoffer/4f402554-ca48-4a0d-b133-47c4bf238415/