diff options
author | 2017-09-04 11:33:50 +0100 | |
---|---|---|
committer | 2017-09-16 10:30:55 +0100 | |
commit | ab3ebc4334b95f13948bac197bb145ef7b846890 (patch) | |
tree | 34f266046454ac3b0af7250735b35356d6dbf0bc /Vagrantfile | |
parent | 036d1e4afb3692ce418c71cc445c0e28469cae5d (diff) |
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 <mchandras@suse.de>
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 2 |
1 files changed, 2 insertions, 0 deletions
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 |