From: Daan De Meyer Date: Fri, 24 Jan 2025 19:12:24 +0000 (+0100) Subject: Use become_root_cmd() when running systemd-repart in run_shell() as well X-Git-Tag: v25.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec31412dbf0b5baff6eceba39cef94d44d00b33;p=thirdparty%2Fmkosi.git Use become_root_cmd() when running systemd-repart in run_shell() as well systemd-repart's --image switch requires root privileges as well, so let's use become_root_cmd() there as well. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index c5f785d4f..9e24c8ec8 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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