summaryrefslogtreecommitdiff
path: root/kexec/arch_reuse_initrd.c
diff options
context:
space:
mode:
authorRaphael Ning <raphning@amazon.com>2021-03-23 17:50:07 +0000
committerSimon Horman <horms@verge.net.au>2021-04-02 12:00:05 +0200
commit4b97ff97852832b4856f76827df2d53d34baae59 (patch)
treec62a1d59f50a63f77500bd917d5cc7171adde5a3 /kexec/arch_reuse_initrd.c
parent2c30aa5c704901e5d5dcbe958a45a0b44948fdc7 (diff)
kexec: Make --status work with normal kexec images
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@amazon.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch_reuse_initrd.c')
0 files changed, 0 insertions, 0 deletions