]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut.sh: disable lsinitrd logging when quiet 272/head
authorZiyue Yang <ziyang@redhat.com>
Wed, 23 Aug 2017 03:23:34 +0000 (11:23 +0800)
committerZiyue Yang <ziyang@redhat.com>
Wed, 23 Aug 2017 03:23:34 +0000 (11:23 +0800)
commitbd93e9287d9c6e1a2aa17b7f90dc13fdcba2157c
treea7dde1b3a1d253390826b180344eb7e31fc57c7e
parent721bec3f143141fe3243e9f9dda9931f99b6b085
dracut.sh: disable lsinitrd logging when quiet

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 by kdump.

This patch disables lsinitrd logging when --quiet option is given,
which is controlled by maxloglvl only before. This will speed up
dracut image building as the following if --quiet is used in kdump:

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

Signed-off-by: Ziyue Yang <ziyang@redhat.com>
dracut.sh