From: Zbigniew Jędrzejewski-Szmek Date: Wed, 19 Apr 2023 15:26:46 +0000 (+0200) Subject: Fix invocation of kernel-install --verbose X-Git-Tag: v15~226^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaeabf7e6bd4897469865a491e8107f359933d62;p=thirdparty%2Fmkosi.git Fix invocation of kernel-install --verbose ‣ Running kernel-install… + bwrap --unshare-ipc --unshare-pid --unshare-cgroup --bind /home/zbyszek/src/mkosi/.mkosi.tmpj5z62xil/root / --tmpfs /run --tmpfs /tmp --dev /dev --proc /proc --ro-bind /sys /sys --bind /home/zbyszek/src/mkosi/.mkosi.tmpj5z62xil/var-tmp /var/tmp --die-with-parent --unshare-net sh -c 'chmod 1777 /tmp /var/tmp /dev/shm && PATH=$PATH:/usr/bin:/usr/sbin exec kernel-install add 6.2.11-300.fc38.x86_64 /lib/modules/6.2.11-300.fc38.x86_64/vmlinuz --verbose || exit $?' Error: initrd '--verbose' not a file. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index b48f4c319..458b5b775 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1611,7 +1611,7 @@ def run_kernel_install(state: MkosiState, cached: bool) -> None: cmd: list[PathString] = ["kernel-install", "add", kver, Path("/") / kimg] if ARG_DEBUG: - cmd += ["--verbose"] + cmd.insert(1, "--verbose") # Make dracut think --no-host-only was passed via the CLI. run_workspace_command(state, cmd, env=dict(hostonly_l="no"))