From 3c02c9ac2c53d88e5d0b983c0b40c2ca06a56c4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20Ospal=C3=BD?= Date: Thu, 3 Jan 2019 19:03:45 +0100 Subject: [PATCH] Add /etc/hosts to the chroot environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ý --- ansible/docker/run_chroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 : -- 2.16.6