[PATCH] kexec: Make --status work with normal kexec images
Simon Horman
horms at verge.net.au
Fri Apr 2 11:01:08 BST 2021
On Tue, Mar 23, 2021 at 05:50:07PM +0000, Raphael Ning wrote:
> From: Raphael Ning <raphning at amazon.com>
>
> According to kexec(8) manpage, --status (-S) works with both
> normal kexec (loaded by -l) and crash kernel (loaded by -p) image
> types, and defaults to the latter. However, the implementation does
> not match the description: `kexec -l -S` queries the -p image type
> as if -l were not specified. This is because there is no internal
> flag defined for the normal kexec type, and -S treats the zero flag
> as the trigger for the default behaviour (-p).
>
> Fix that by making sure the default behaviour for -S is not applied
> when the -l option is present.
>
> Signed-off-by: Raphael Ning <raphning at amazon.com>
Thanks, applied.
More information about the kexec
mailing list