From 5ace915b21ddd9a09118b657d3bed5eb8fdbd340 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 25 Jun 2025 14:04:58 +0200 Subject: [PATCH] Make /etc/machine-id from host available in relaxed sandbox as well --- mkosi/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.2