Unnamed repository
Go to file
Kairui Song f13eab60cb mkdumprd: simplify dracut args parsing
Previously dracut_args is stored as an array in the shell code,
so we can just pass this array as argument to dracut.
But when trying to append new dracut argument, we have to manually
handle the quotes and spaces to ensure the appended argument is
splitted into array elements in the right way.

This is complex and hard to read or maintain. Instead, just store the
dracut_args as a plain string, and let xargs help parse it and call
dracut.

Simply passing $dracut_args or "$dracut_args" will either let dracut
consider the whole string as a single argument, or loss all the
quotes. xargs can handle it well and cover more corner cases.

Eg. one corner case before, if we have:
dracut_args --mount "/dev/sda1 /mnt/test xfs rw"

Kdump will fail, because the function add_dracut_arg() will wrongly
change the arguments into: (Notice the extra space.)
dracut_args --mount " /dev/sda1 /mnt/test xfs rw"

Instead of fixing it just use xargs instead. Tested with above config
and multiple other dracut_args values.

Resolves: bz1700136
Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Dave Young <dyoung@redhat.com>
2019-11-27 23:45:54 +08:00
.gitignore .gitignore: Update to make it more generic 2016-05-16 10:15:01 +08:00
98-kexec.rules Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
98-kexec.rules.ppc64 kexec.rules: create dedicated udev rules for ppc64 2019-05-06 16:22:28 +08:00
dracut-early-kdump-module-setup.sh earlykdump: warn when installed kernel version differs from dracut target 2019-01-10 18:16:58 +08:00
dracut-early-kdump.sh earlykdump: generate symlink with stable name to kernel image and iniramfs 2019-01-10 18:11:49 +08:00
dracut-kdump-capture.service dracut-kdump-capture.service: Use OnFailureJobMode instead of deprecated OnFailureIsolate 2019-06-14 09:44:09 +08:00
dracut-kdump-emergency.service kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-emergency.target kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-error-handler.service Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +08:00
dracut-kdump-error-handler.sh Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +08:00
dracut-kdump.sh Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
dracut-module-setup.sh Always set vm.zone_reclaim_mode = 3 in kdump kernel 2019-11-13 11:35:46 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
early-kdump-howto.txt earlykdump: provide a prompt message after the rebuilding of kdump initramfs. 2019-05-20 16:56:19 +08:00
fadump-howto.txt Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump-dep-generator.sh kdump-dep-generator: Add kdump service dependencies on the fly 2014-04-17 11:27:31 +08:00
kdump-in-cluster-environment.txt Add fence_kdump support for generic clusters 2014-04-03 14:43:06 +08:00
kdump-lib-initramfs.sh Don't execute final_action if failure_action terminates the system 2019-11-01 11:21:58 +08:00
kdump-lib.sh kdump-lib: strip grub device from kdump_bootdir 2019-09-24 12:19:43 +03:00
kdump-udev-throttler Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
kdump.conf Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.conf.5 Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.service kdumpctl: Add reload support 2018-11-01 22:31:20 +08:00
kdump.sysconfig Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.aarch64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.i386 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64le Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.s390x Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.x86_64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdumpctl kdumpctl: make reload fail proof 2019-11-12 13:22:52 +08:00
kdumpctl.8 Update man page for new kdumpctl command: reload / rebuild 2019-04-05 02:02:58 +08:00
kexec-kdump-howto.txt kexec-kdump-howto.txt: Add notes about device dump 2019-09-02 17:06:16 +08:00
kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch x86: Fix broken multiboot2 buliding for i386 2019-08-02 11:24:03 +08:00
kexec-tools-2.0.20-makedumpfile-Do-not-proceed-when-get_num_dumpable_cyclic-fails.patch makedumpfile: Do not proceed when get_num_dumpable_cyclic() fails 2019-08-06 11:14:40 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-exclusion-range-in-find_vmemmap_pages.patch makedumpfile: Fix exclusion range in find_vmemmap_pages() 2019-09-20 16:37:39 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-inconsistent-return-value-from-find_vmemmap.patch makedumpfile: Fix inconsistent return value from find_vmemmap() 2019-09-20 16:37:44 +08:00
kexec-tools-2.0.20-makedumpfile-Increase-SECTION_MAP_LAST_BIT-to-4.patch makedumpfile: Increase SECTION_MAP_LAST_BIT to 4 2019-08-06 11:15:14 +08:00
kexec-tools-2.0.20-makedumpfile-x86_64-Fix-incorrect-exclusion-by-e-option.patch makedumpfile: x86_64: Fix incorrect exclusion by -e option with KASLR 2019-09-20 16:37:23 +08:00
kexec-tools.spec spec: move binaries from /sbin to /usr/sbin 2019-11-08 15:23:33 +08:00
live-image-kdump-howto.txt Revert "kdumpctl: filter 'root' kernel parameter when running in live images" 2017-04-11 16:03:12 +08:00
mkdumprd mkdumprd: simplify dracut args parsing 2019-11-27 23:45:54 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
sources Release 2.0.20-1 2019-07-31 15:54:46 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec