From: Markos Chandras Date: Mon, 4 Sep 2017 10:33:50 +0000 (+0100) Subject: Vagrantfile: Add workaround for empty /etc/hosts X-Git-Tag: 6.0.0~319 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F41613%2F2;p=releng-xci.git Vagrantfile: Add workaround for empty /etc/hosts Due to a bug in Yast2, /etc/hosts may be empty in Vagrant images so add a workaround for it. Change-Id: I1da9204a07f33008f9d5f1ec9ce976116e9d7a4c Signed-off-by: Markos Chandras --- diff --git a/Vagrantfile b/Vagrantfile index 78aa8d75..2a82902b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -140,6 +140,8 @@ Vagrant.configure(2) do |config| export VM_DOMAIN_TYPE=qemu export PATH=$PATH:$HOME/.local/bin export OPNFV_RELENG_DEV_PATH=/vagrant + # workaround for https://github.com/openSUSE/vagrant/pull/22 + sudo bash -c 'echo "127.0.0.1 localhost" >> /etc/hosts' [[ ! -e ${HOME}/.ssh/id_rsa ]] && ssh-keygen -q -P '' -f ${HOME}/.ssh/id_rsa cd xci && ./xci-deploy.sh SHELL