From: Daan De Meyer Date: Fri, 11 Aug 2023 10:11:22 +0000 (+0200) Subject: Pass through stdin when we call systemd-repart with --image= X-Git-Tag: v16~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a16c33f8862bc77115d247de02014b707ecc87;p=thirdparty%2Fmkosi.git Pass through stdin when we call systemd-repart with --image= When mounting an image, systemd's dissect logic might prompt for verity/encryption passphrases. Let's make sure the user can enter those if needed. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index b11f6aee6..23e5a8e3f 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1571,7 +1571,8 @@ def run_shell(args: MkosiArgs, config: MkosiConfig) -> None: "--no-pager", "--dry-run=no", "--offline=no", - fname]) + fname], + stdin=sys.stdin) if config.output_format == OutputFormat.directory: cmdline += ["--directory", fname]