On 02/27/18 at 07:35pm, Lianbo Jiang wrote:
When core_collector is changed, the kdump initramfs needs to
be rebuilt before it is loaded.
Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1507731
Signed-off-by: Lianbo Jiang <lijiang(a)redhat.com>
---
kdumpctl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kdumpctl b/kdumpctl
index 4280e7e..cebca36 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -400,10 +400,12 @@ check_files_modified()
EXTRA_BINS=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\ -f2`
CHECK_FILES=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\ -f2`
+ CORE_COLLECTOR=`grep ^core_collector $KDUMP_CONFIG_FILE | cut -d\ -f2`
+ CORE_COLLECTOR=`type -P $CORE_COLLECTOR`
EXTRA_BINS="$EXTRA_BINS $CHECK_FILES"
CHECK_FILES=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\ -f2-`
EXTRA_BINS="$EXTRA_BINS $CHECK_FILES"
- files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_BINS"
+ files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_BINS $CORE_COLLECTOR"
[[ -e /etc/fstab ]] && files="$files /etc/fstab"
check_exist "$files" && check_executable "$EXTRA_BINS"
--
2.9.5
_______________________________________________
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
The subject described a problem, but it would be better to describe what
the patch is doing. eg. "Rebuild kdump initramfs in case core_colletor
updated" or "Fix a problem about ..." etc. But this can be fixed while
applying the patch. The change looks good to me.
Acked-by: Dave Young <dyoung(a)redhat.com>
Thanks
Dave