]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Pass through stdin when we call systemd-repart with --image=
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Aug 2023 10:11:22 +0000 (12:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Aug 2023 10:45:53 +0000 (12:45 +0200)
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.

mkosi/__init__.py

index b11f6aee65cdc2f9f2c123220a74c7a96cff9ff1..23e5a8e3f8c4f22b842328f64b9ab47aa2a7b8bb 100644 (file)
@@ -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]