summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-06-13 17:23:32 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-06-13 17:23:42 +0200
commitd4a8eb3b492a7af2dc48996792ecf95556b615cc (patch)
tree81578cd154ab78242cf868d7652514d74059b5dd
parente768cf9420b967527d0e7b2323aedc131c9a27a6 (diff)
downloadopenshift-d4a8eb3b492a7af2dc48996792ecf95556b615cc.tar.gz
openshift-d4a8eb3b492a7af2dc48996792ecf95556b615cc.tar.bz2
openshift-d4a8eb3b492a7af2dc48996792ecf95556b615cc.tar.xz
openshift-d4a8eb3b492a7af2dc48996792ecf95556b615cc.zip
installer: add bind mount for /etc/resolv.conf
Use the DNS configuration from the host. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1460978 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--images/installer/system-container/root/exports/config.json.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/images/installer/system-container/root/exports/config.json.template b/images/installer/system-container/root/exports/config.json.template
index 383e3696e..718ce1d53 100644
--- a/images/installer/system-container/root/exports/config.json.template
+++ b/images/installer/system-container/root/exports/config.json.template
@@ -171,6 +171,16 @@
]
},
{
+ "destination": "/etc/resolv.conf",
+ "type": "bind",
+ "source": "/etc/resolv.conf",
+ "options": [
+ "ro",
+ "rbind",
+ "rprivate"
+ ]
+ },
+ {
"destination": "/sys/fs/cgroup",
"type": "cgroup",
"source": "cgroup",