From ab3ebc4334b95f13948bac197bb145ef7b846890 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 4 Sep 2017 11:33:50 +0100 Subject: [PATCH] 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 --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.16.6