Unnamed repository
Go to file
dyoung@redhat.com fe96b47828 add dracut_args option to kdump.conf
mkdumprd call dracut to rebuilding kdump initrd, sometimes passing extra
dracut args is helpful. For example user can enable debug output with
--debug, --printsize to print roughly increased initramfs size by each module,
--omit-drivers to omit kernel modules, etc.

This patch enables dracut_args option for passing extra args to dracut.
Also it modifies add_dracut_arg() to treat a string with-in quote as single
string because for dracut options which has its own args, the args need to be
quoted and space seperated.

If add_dracut_arg() gets an string read from kdump.conf and if that string
contains double quotes, then while converting to positional parameters
those double quotes are not interpreted. Hence if /etc/kdump.conf contains
following.

dracut_args --add-drivers "driver1 driver2"

then add_dracut_args() sees following positional parameters

$1= --add-drivers
$2= "driver1
$3= driver2"

Notice, double quotes have been ignored and parameters have been broken
based on white space.

Modify add_dracut_arg() to look for parameters starting with " and
if one is found, it tries to merge all the next parameters till one
is found with ending double quote. Hence effectively simulating
following behavior.

$1= --add-drivers
$2= "driver1 driver2"

[v1->v2]: address quoted substring in dracut_args, also handle the leading
and ending spaces in substring.
[v2->v3]: fix dracut arguments seperator in kdump.conf.
[v3->v4]: improve changelog, thanks vivek.
[v4->v5]: make the manpage more verbose [vivek].

Tested with below dracut_args test cases:
1. dracut_args --add-drivers "pcspkr virtio_net" --omit-drivers "sdhci-pci hid-logitech-dj e1000"
2. dracut_args --add-drivers "   pcspkr virtio_net   " --omit-drivers "sdhci-pci hid-logitech-dj e1000"

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
2013-04-27 10:44:48 +08:00
po Update translation file po/it.po 2013-01-28 14:02:09 +08:00
.gitignore Pull kexec-tools-2.0.4 2013-04-02 11:35:30 +08:00
98-kexec.rules udev rules fix 2012-05-28 09:50:47 +08:00
dracut-kdump.sh Remove "-F" in CORE_COLLECTOR when dump_to_rootfs 2013-03-14 11:20:57 +08:00
dracut-module-setup.sh dracut-module-setup.sh: remove UUID/LABEL quotes before using it 2013-03-14 10:42:15 +08:00
dracut-monitor_dd_progress remove dracut-files.tbz2 [v2] 2012-05-03 10:06:05 +08:00
firstboot_kdump.py firstboot:fix reserve mem ui spinbox step size 2012-12-12 17:15:10 +08:00
kdump.conf add dracut_args option to kdump.conf 2013-04-27 10:44:48 +08:00
kdump.conf.5 add dracut_args option to kdump.conf 2013-04-27 10:44:48 +08:00
kdump.init - Fix a syntax error in kdump init script 2010-06-13 21:54:34 +00:00
kdump.service Fixup sysytemd service file (bug 741272) 2012-02-14 10:13:06 -07:00
kdump.sysconfig do not mount root twice 2012-07-12 11:15:35 +08:00
kdump.sysconfig.i386 tune sysconfig to save memory usage 2013-02-27 10:16:14 +08:00
kdump.sysconfig.ia64 Mass Update of RHEL5 patches 2008-06-05 15:18:53 +00:00
kdump.sysconfig.ppc64 tune sysconfig to save memory usage 2013-02-27 10:16:14 +08:00
kdump.sysconfig.s390x tune sysconfig to save memory usage 2013-02-27 10:16:14 +08:00
kdump.sysconfig.x86_64 tune sysconfig to save memory usage 2013-02-27 10:16:14 +08:00
kdumpctl add dracut_args option to kdump.conf 2013-04-27 10:44:48 +08:00
kexec-kdump-howto.txt Change dump_to_rootfs to be a default option and reboot to be default action 2013-03-14 11:13:18 +08:00
kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch Support for eppic language as a subpackage 2013-03-14 14:42:55 +08:00
kexec-tools-2.0.3-disable-kexec-test.patch Disable kexec_test 2012-01-21 16:56:07 +08:00
kexec-tools.spec kexec-tools.spec: Add ethtool to dependency. 2013-04-11 17:01:43 +08:00
mkdumprd add dracut_args option to kdump.conf 2013-04-27 10:44:48 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
rhcrashkernel-param rhcrashkernel-param: echo crashkernel=auto for rhel7 2012-08-20 15:01:47 +08:00
sources Pull kexec-tools-2.0.4 2013-04-02 11:35:30 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00