Re: powerpc/kexec_file: print configured kernel command line
From: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Date: 2026-07-10 03:44:31
Sourabh Jain [off-list ref] writes:
Kexec with the -d option prints extra logs about the kexec/kdump kernel that help debug kexec and kdump. For example, it shows what kexec segments are loaded, their locations, and sizes. One key piece of information still missing is the kernel command line configured for the kexec/kdump kernel. With this patch included, the kernel will print the kernel command line configured for the kexec/kdump kernel as shown below: kexec --initrd=./initrd ./kernel -lspd --command-line="test1 test2" Loaded elf core header at 0x22e30000, bufsz=0x2000 memsz=0x80000 kexec_elf: Command line: elfcorehdr=0x22e30000 test1 test2 <--- New kexec_elf: Loaded initrd at 0x22eb0000
Looks like this slipped through the cracks. agreed that this is good to have info. LGTM. So please feel free to add: Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> (this was still cleanly applicable on my latest dev tree)
Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sourabh Jain <redacted>
-ritesh