Comment 1 for bug 440757

Revision history for this message
Scott Moser (smoser) wrote :

I really don't feel like fixing this correctly in vmbuilder at the moment. Doing so I think would be to either:
a.) add a '--no-local-host-entry' like field
b.) allow '--host' to be 'null' or 'unset' special case. On that, the 127.0.1.1 entry would not be written.

Neither of those are trivial. The reason for this is that the values populated into /etc/hosts come from the '--hostname' and '--domain' arguments. --hostname (vm.hostname) is used:

$ grep vm.hostname -r * -l
VMBuilder/plugins/libvirt/__init__.py
VMBuilder/plugins/ubuntu/dapper.py
VMBuilder/plugins/virtualbox/vm.py
VMBuilder/plugins/vmware/vm.py

So, I'm planning on removing the 127.0.1.1 entry in a '--execscript' script that will be pasted from build-ec2-image