From: Daan De Meyer Date: Mon, 8 Jan 2024 10:25:37 +0000 (+0100) Subject: Only mount /etc/resolv.conf into sandbox if not in relaxed mode X-Git-Tag: v20~9^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a0757ea189599848a723410b5b366d326e02df;p=thirdparty%2Fmkosi.git Only mount /etc/resolv.conf into sandbox if not in relaxed mode In relaxed mode we already mount /etc so no need to mount resolv.conf separately. --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py index 2fcfdc10d..fc408e24e 100644 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -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: