From: Daan De Meyer Date: Wed, 25 Jun 2025 12:04:58 +0000 (+0200) Subject: Make /etc/machine-id from host available in relaxed sandbox as well X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3783%2Fhead;p=thirdparty%2Fmkosi.git Make /etc/machine-id from host available in relaxed sandbox as well --- diff --git a/mkosi/run.py b/mkosi/run.py index 17c0f8780..97c685ad8 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -527,7 +527,7 @@ def sandbox_cmd( cmdline += ["--ro-bind", tools / "etc", "/etc"] if tools != Path("/"): - for f in ("passwd", "group", "shadow", "gshadow", "nsswitch.conf"): + for f in ("passwd", "group", "shadow", "gshadow", "nsswitch.conf", "machine-id"): if Path(f"/etc/{f}").exists() and (tools / "etc" / f).exists(): cmdline += ["--ro-bind", f"/etc/{f}", f"/etc/{f}"] else: