From 2c9a863fd3f9c89d4b933e5f9f096df886e28c22 Mon Sep 17 00:00:00 2001 From: Xunlei Pang Date: Wed, 30 Aug 2017 16:45:48 +0800 Subject: [PATCH] kdumpctl: remove some cmdline inheritage from 1st kernel Now with the help of "--hostonly-cmdline", dracut will generate the needed cmdlines for the dump target, so we can avoid the corresponding duplicate or unnecessary inheritage. Signed-off-by: Xunlei Pang Acked-by: Dave Young --- kdumpctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kdumpctl b/kdumpctl index 188c000..1aceacf 100755 --- a/kdumpctl +++ b/kdumpctl @@ -199,6 +199,9 @@ prepare_cmdline() # KDUMP_COMMANDLINE_APPEND. cmdline=$(remove_cmdline_param "$cmdline" root) + # With the help of "--hostonly-cmdline", we can avoid some interitage. + cmdline=$(remove_cmdline_param "$cmdline" rd.lvm.lv rd.luks.uuid rd.dm.uuid rd.md.uuid fcoe) + cmdline="${cmdline} ${KDUMP_COMMANDLINE_APPEND}" id=$(get_bootcpu_apicid)