]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix base tree tar archive unpacking
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 11 Feb 2024 07:52:27 +0000 (08:52 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Sun, 11 Feb 2024 09:28:49 +0000 (10:28 +0100)
mkosi/__init__.py

index 8c172739676fc61431d559909761257e329d0bbb..72ca3ba48f77174788f8627c40360494dffaed21 100644 (file)
@@ -108,7 +108,7 @@ def mount_base_trees(context: Context) -> Iterator[None]:
                 extract_tar(
                     path, d,
                     tools=context.config.tools(),
-                    sandbox=context.sandbox(options=["--bind", d, d]),
+                    sandbox=context.sandbox(options=["--ro-bind", path, path, "--bind", d.parent, d.parent]),
                 )
                 bases += [d]
             elif path.suffix == ".raw":