]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make /etc/machine-id from host available in relaxed sandbox as well 3783/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 25 Jun 2025 12:04:58 +0000 (14:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 25 Jun 2025 12:04:58 +0000 (14:04 +0200)
mkosi/run.py

index 17c0f8780ccfe7e892323a39f0266b54715fa2a6..97c685ad88a1e1102bb9a2683ebff335a2f5bd97 100644 (file)
@@ -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: