]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add back /etc/mtab symlink
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Sep 2024 11:16:37 +0000 (13:16 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Sep 2024 11:16:37 +0000 (13:16 +0200)
This got dropped somewhere in all the refactoring so let's add it
back.

mkosi/run.py

index 64020adfcdef6c801fa88584b3d2f62ff0a2a28e..4273aeba1259238405a003427b30eb362e4e64ac 100644 (file)
@@ -529,7 +529,12 @@ def sandbox_cmd(
         if home := current_home_dir():
             cmdline += ["--bind", home, home]
     else:
-        cmdline += ["--dir", "/var/tmp", "--dir", "/var/log", "--unshare-ipc"]
+        cmdline += [
+            "--dir", "/var/tmp",
+            "--dir", "/var/log",
+            "--unshare-ipc",
+            "--symlink", "../proc/self/mounts", "/etc/mtab",
+        ]
 
         if devices:
             cmdline += ["--bind", "/sys", "/sys", "--bind", "/dev", "/dev"]