瀏覽代碼

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 年之前
父節點
當前提交
d4a8eb3b49
共有 1 個文件被更改,包括 10 次插入0 次删除
  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",