]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use become_root_cmd() when running systemd-repart in run_shell() as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Jan 2025 19:12:24 +0000 (20:12 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 24 Jan 2025 20:30:47 +0000 (21:30 +0100)
systemd-repart's --image switch requires root privileges as well, so
let's use become_root_cmd() there as well.

mkosi/__init__.py

index c5f785d4f18564378021352fde76be62078324ed..9e24c8ec803049a7abade00483218d49c92487cf 100644 (file)
@@ -4010,6 +4010,7 @@ def run_shell(args: Args, config: Config) -> None:
                     network=True,
                     devices=True,
                     options=["--bind", fname, workdir(fname)],
+                    setup=become_root_cmd(),
                 ),
             )  # fmt: skip