summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-01-04 08:51:54 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-04 08:51:54 +0000
commit3942667de0be2a9829233a99b41fb7c520757efb (patch)
treeb6cadf0419769b9c669ce897268d4bcb37ffa245
parent7d107a6606d6164ed55ddb9686f698de7c9bcd21 (diff)
parent3c02c9ac2c53d88e5d0b983c0b40c2ca06a56c4e (diff)
Merge "Add /etc/hosts to the chroot environment"
-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
: