FWIW this code in bootstrap.sh should help mitigating the issue:
if ! grep -q $(cat /etc/hostname) /etc/hosts; then
echo >> /etc/hosts
echo 127.0.0.1 $(cat /etc/hostname) >> /etc/hosts
fi
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1561250
Title:
Xenial vagrant image is missing its hostname in /etc/hosts
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1561250/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs