From 91944d1ab80aa1c1bfd07cc742b59ebd6e0ba329 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Tue, 5 Jun 2018 21:54:38 -0500 Subject: [PATCH] chroot: when connmanctl is installed, make sure symlink to /etc/resolv.conf is setup Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 3ab24106f..05a8cc832 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -1351,6 +1351,12 @@ cat > "${DIR}/cleanup_script.sh" <<-__EOF__ } cleanup + + if [ -f /usr/bin/connmanctl ] ; then + rm -rf /etc/resolv.conf || true + ln -s /run/connman/resolv.conf /etc/resolv.conf + fi + rm -f /cleanup_script.sh || true __EOF__ -- GitLab