Live images are booted with a kernel parameter which looks like "root=live:CDLABEL=Fedora-WS-Live-25_A-2". This argument can't be recognized by dracut during kdump process and will cause failure of kdump. So we should filter 'root' out when we find such a parameter in /proc/cmdline to make kdump work correctly in live images.
Signed-off-by: Tong Li tonli@redhat.com --- kdumpctl | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/kdumpctl b/kdumpctl index d0bbb55..66f3ff7 100755 --- a/kdumpctl +++ b/kdumpctl @@ -27,6 +27,11 @@ if [ -f /etc/sysconfig/kdump ]; then . /etc/sysconfig/kdump fi +# root parameter will result kdump failure in live images +if [[ $(cat /proc/cmdline) == *"root=live:CDLABEL"* ]]; then + KDUMP_COMMANDLINE_REMOVE="${KDUMP_COMMANDLINE_REMOVE} root" +fi + single_instance_lock() { local rc timeout=5 -- 2.7.4