]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use long options for `systemd-dissect` 2814/head
authorMichael Ferrari <nekkodroid404@gmail.com>
Mon, 1 Jul 2024 09:14:42 +0000 (11:14 +0200)
committerMichael Ferrari <nekkodroid404@gmail.com>
Mon, 1 Jul 2024 09:55:31 +0000 (11:55 +0200)
mkosi/__init__.py

index 6cf29d99bcc81fa36e61f3f0be2035f89383861e..82f79cabfbd21e5f64d06145b7df12e907224142 100644 (file)
@@ -108,8 +108,8 @@ def mount_base_trees(context: Context) -> Iterator[None]:
                 extract_tar(path, d, sandbox=context.sandbox)
                 bases += [d]
             elif path.suffix == ".raw":
-                run(["systemd-dissect", "-M", path, d])
-                stack.callback(lambda: run(["systemd-dissect", "-U", d]))
+                run(["systemd-dissect", "--mount", "--mkdir", path, d])
+                stack.callback(lambda: run(["systemd-dissect", "--umount", "--rmdir", d]))
                 bases += [d]
             else:
                 die(f"Unsupported base tree source {path}")