]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
run: Unshare pid namespace again in bwrap()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jul 2023 13:51:48 +0000 (15:51 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jul 2023 13:51:48 +0000 (15:51 +0200)
This was removed when we had a brief experiment with running everything
with bwrap(), but since we don't do that anymore, let's add this back
to make chroot detection work again.

mkosi/run.py

index af2d39f8cdd7cdb75ea79de53bc1f3a0fd920700..5ec2ac2c71184af840a824f6b3b7c79f26b7975a 100644 (file)
@@ -262,6 +262,7 @@ def bwrap(
         "bwrap",
         "--dev-bind", "/", "/",
         "--chdir", Path.cwd(),
+        "--unshare-pid",
         "--die-with-parent",
         *options,
     ]