On 03/28/2017 at 04:01 PM, Dave Young wrote:
On 03/27/17 at 10:42am, Xunlei Pang wrote:
> For the following scripts,
> cmdline="root=/dev/mapper/rhel-root rd.lvm.lv=rhel/root quiet"
> remove_cmdline_param $cmdline "root"
>
> we will get the result "rd.lvm.lv=rhel/ quiet", after this patch
> we can get the correct "rd.lvm.lv=rhel/root quiet".
>
> Signed-off-by: Xunlei Pang <xlpang(a)redhat.com>
> ---
> kdumpctl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/kdumpctl b/kdumpctl
> index ca97580..e9dc8e5 100755
> --- a/kdumpctl
> +++ b/kdumpctl
> @@ -75,7 +75,8 @@ remove_cmdline_param()
> for arg in $@; do
> cmdline=`echo $cmdline | \
> sed -e "s/\b$arg=[^ ]*\b//g" \
> - -e "s/\b$arg\b//g" \
> + -e "s/^$arg\b//g" \
> + -e "s/[[:space:]]$arg\b//g" \
> -e "s/\s\+/ /g"`
> done
> echo $cmdline
> --
> 1.8.3.1
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
Acked-by: Dave Young <dyoung(a)redhat.com>
Xunlei, I can merge this one first so that it does not being included in
the series again.
Hi Dave,
I found another case needs to be fixed as well, so please hold this one, I will send
the updated one out with the "remove root=X" patchset. Thanks!
Regards,
Xunlei