From: Petr OspalĂ˝ Date: Thu, 3 Jan 2019 18:03:45 +0000 (+0100) Subject: Add /etc/hosts to the chroot environment X-Git-Tag: 6.0.0-ONAP~349^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F75239%2F1;p=oom%2Foffline-installer.git Add /etc/hosts to the chroot environment This will change in a future commit to be little more flexible. As of now it fixes some usage when host system has defined some custom resolving which are needed. Change-Id: Ifea2ba087982006c0a399d1b225d7ab13f7e94da Issue-ID: OOM-1551 Signed-off-by: Petr OspalĂ˝ --- diff --git a/ansible/docker/run_chroot.sh b/ansible/docker/run_chroot.sh index b38c1295..1ab26373 100755 --- a/ansible/docker/run_chroot.sh +++ b/ansible/docker/run_chroot.sh @@ -448,8 +448,9 @@ case "$action" in install_wrapper # execute chroot - # copy resolv.conf + # copy resolv.conf and hosts file cp -a /etc/resolv.conf "$CHROOT_DIR"/etc/resolv.conf + cp -a /etc/hosts "$CHROOT_DIR"/etc/hosts if [ -n "$1" ] ; then :