Browse Source

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>
Giuseppe Scrivano 7 years ago
parent
commit
d4a8eb3b49
1 changed files with 10 additions and 0 deletions
  1. 10 0
      images/installer/system-container/root/exports/config.json.template

+ 10 - 0
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",