On 12/08/14 at 01:24pm, Hari Bathini wrote:
> On 12/08/2014 11:49 AM, WANG Chao wrote:
> >On 12/08/14 at 01:52pm, Dave Young wrote:
> >>Hi, Hari
> >>
> >>Thanks for the update, but sorry that I find some other issue.
> >>
>>Checking dracut code, they install sysctl config files via modules.d/98systemd/:
> >>There's below files:
> >> /etc/sysctl.d/*.conf \
> >> /etc/sysctl.conf
> >>
> >>Thus, if we only checking sysctl.conf, we will miss sysctl.d/*.conf.
> Hmmm...
> That makes it a little tricky.
> >I checked in RHEL6 era we didn't include
sysctl.conf in 2nd kernel. I
> >think we can do the same here. dracut will first install sysctl.conf in
> >98systemd module and we can remove it in our 99kdump module. Thoughts?
> I think the best way to go forward is as suggested by
Chao..
> To remove sysctl in kdump dracut module..
Ok, please send a new patch for this.
I think we can do something like below for future fix:
1) add kernel cmdline params like: sysctl.x.y=z [x=vm,net,etc.] [y=min_free_kbytes,
etc.]
2) add kernel cmdline, nosysctl so that only the params which are passed in kernel
cmdline are used.
3) remove the sysctl.conf deletion in kdump module, suggest user to add nosysctl in
cmdline