kdumpctl: fix status check when CONFIG_CRASH_DUMP is not enabled in kernel
When kexec_crash_loaded does not exist, means kdump was not enabled in kernel we get $ kdumpctl status cat: /sys/kernel/kexec_crash_loaded: No such file or directory /usr/bin/kdumpctl: line 879: [: ==: unary operator expected Kdump is not operational After this patch: $ kdumpctl status Perhaps CONFIG_CRASH_DUMP is not enabled in kernel Kdump is not operational Signed-off-by: Pratyush Anand <panand@redhat.com> Reviewed-by: Bhupesh Sharma <bhsharma@redhat.com> Reviewed-by: Xunlei Pang <xlpang@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
961bda9152
commit
21dcf7e3b1
Loading…
Reference in New Issue
Block a user