On 2016年10月12日 16:04, Dave Young wrote:
On 10/11/16 at 01:59pm, Tong Li wrote:
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"
It should be in the sysconfig variable instead of in kdumpctl. Could you update kdump.sysconfig.* instead?
kdump.sysconfig.* look like just collections of variables. Is that appropriate that we add some logical code into it?
Also match "root=live:" should be better, we do not know if there are other types of live boot.
Sounds good. Thank you for the suggestion.
+fi
- single_instance_lock() { local rc timeout=5
-- 2.7.4 _______________________________________________ kexec mailing list -- kexec@lists.fedoraproject.org To unsubscribe send an email to kexec-leave@lists.fedoraproject.org
Thanks Dave
Regards, Tong