boxes: Backport GH-92

This commit is contained in:
Fabio Rehm 2014-03-09 17:25:08 -03:00
parent a7074545ed
commit e598086913

View file

@ -33,3 +33,11 @@ lxc-create -n ${CONTAINER} -t download -- \
# TODO: Nicely handle boxes that don't have an image associated # TODO: Nicely handle boxes that don't have an image associated
log "Container created!" log "Container created!"
# Fixes some networking issues
# See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info
if ! $(grep -q 'ip6-allhosts' ${ROOTFS}/etc/hosts); then
log "Adding ipv6 allhosts entry to container's /etc/hosts"
echo 'ff02::3 ip6-allhosts' >> ${ROOTFS}/etc/hosts
fi