diff options
author | Petr Ospalý <p.ospaly@partner.samsung.com> | 2019-01-03 19:03:45 +0100 |
---|---|---|
committer | Petr Ospalý <p.ospaly@partner.samsung.com> | 2019-01-03 19:25:38 +0100 |
commit | 3c02c9ac2c53d88e5d0b983c0b40c2ca06a56c4e (patch) | |
tree | 5e17dd0154ffec9468ccf60a4c38f6873ac15592 /ansible | |
parent | 03e61247159837b566b0cfcc380606dc317fbf1a (diff) |
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ý <p.ospaly@partner.samsung.com>
Diffstat (limited to 'ansible')
-rwxr-xr-x | ansible/docker/run_chroot.sh | 3 |
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 : |