Currently in Fedora/RedHat dracut installs its fedora.conf.example
as the default config file, in which sysloglvl is set 5. This leads
to maxloglvl=5 in dracut calls, making unnecessary lsinitrd calls
during initramfs builds.
This patch makes use of --confdir arguments of dracut, creates temp
config directory before mkdumprd(dracut) calls. It appends sysloglvl=3
option by creating a 99-kdump.conf file in the temp config directory.
1) Before this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
/etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real 0m26.824s
user 0m9.958s
sys 0m15.106s
2) After this patch
$ kdumpctl stop; touch /etc/kdump.conf; time kdumpctl start
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):
/etc/kdump.conf
Rebuilding /boot/initramfs-4.13.0-0.rc1.git4.1.fc27.x86_64kdump.img
kexec: loaded kdump kernel
Starting kdump: [OK]
real 0m20.420s
user 0m8.385s
sys 0m10.468s
Ziyue Yang (2):
kdumpctl: lower dracut's sysloglvl to eliminate redundant lsinitrd
calls
kdump.conf: add help text for dracut_sysloglvl config item
kdump-lib.sh | 19 +++++++++++++++++++
kdump.conf | 6 ++++++
kdump.conf.5 | 7 +++++++
kdumpctl | 5 +++--
4 files changed, 35 insertions(+), 2 deletions(-)
--
2.9.3