summaryrefslogtreecommitdiffstats
path: root/ansible/docker
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/docker')
-rwxr-xr-xansible/docker/run_chroot.sh3
1 files changed, 2 insertions, 1 deletions
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
: