]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Only mount /etc/resolv.conf into sandbox if not in relaxed mode
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 Jan 2024 10:25:37 +0000 (11:25 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 Jan 2024 10:25:37 +0000 (11:25 +0100)
In relaxed mode we already mount /etc so no need to mount resolv.conf
separately.

mkosi/sandbox.py

index 2fcfdc10da709006fe18da4008f557f8e5195889..fc408e24e016584d50d65979940d88eb42126bbc 100644 (file)
@@ -134,7 +134,7 @@ def sandbox_cmd(
     if scripts:
         cmdline += ["--ro-bind", scripts, scripts]
 
-    if network:
+    if network and not relaxed:
         cmdline += ["--bind", "/etc/resolv.conf", "/etc/resolv.conf"]
 
     if devices: