From e38a68c1328bbed57ba8c3fec9a4435f07887146 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Tue, 7 Dec 2021 20:02:41 +0800 Subject: [PATCH] Document/kexec-kdump-howto.txt: improve notes for kdump_pre and kdump_post scripts upstream: fedora related: bz2003832 conflict: none commit 8cc51f3ab922cad5e857e37440d65466b1b8c2fd Author: Pingfan Liu Date: Mon Nov 15 22:23:42 2021 +0800 Document/kexec-kdump-howto.txt: improve notes for kdump_pre and kdump_post scripts Signed-off-by: Pingfan Liu Acked-by: Coiby Xu Signed-off-by: Tao Liu --- kdump.conf.5 | 14 ++++++++++---- kexec-kdump-howto.txt | 6 ++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/kdump.conf.5 b/kdump.conf.5 index 2c5a2bc..6e6cafa 100644 --- a/kdump.conf.5 +++ b/kdump.conf.5 @@ -118,8 +118,11 @@ All files under /etc/kdump/post.d are collectively sorted and executed in lexical order, before binary or script specified kdump_post parameter is executed. .PP -Note that scripts written for use with this directive must use -the /bin/bash interpreter. +Note that scripts written for use with this directive must use the /bin/bash +interpreter. And since these scripts run in kdump enviroment, the reference to +the storage or network device in the scripts should adhere to the section +'Supported dump target types and requirements' in kexec-kdump-howto.txt. + .RE .B kdump_pre @@ -139,8 +142,11 @@ kdump_pre parameter is executed. Even if the binary or script in /etc/kdump/pre.d directory returns non 0 exit status, the processing is continued. .PP -Note that scripts written for this directive must use -the /bin/bash interpreter. +Note that scripts written for use with this directive must use the /bin/bash +interpreter. And since these scripts run in kdump enviroment, the reference to +the storage or network device in the scripts should adhere to the section +'Supported dump target types and requirements' in kexec-kdump-howto.txt. + .RE .B extra_bins diff --git a/kexec-kdump-howto.txt b/kexec-kdump-howto.txt index 88af607..1aeffc7 100644 --- a/kexec-kdump-howto.txt +++ b/kexec-kdump-howto.txt @@ -621,6 +621,9 @@ If /etc/kdump/post.d directory exist, All files in the directory are collectively sorted and executed in lexical order, before binary or script specified kdump_post parameter is executed. +In these scripts, the reference to the storage or network device should adhere +to the section 'Supported dump target types and requirements' + Kdump Pre-Capture Executable ---------------------------- @@ -634,6 +637,9 @@ kdump_pre parameter is executed. Even if the binary or script in /etc/kdump/pre.d directory returns non 0 exit status, the processing is continued. +In these scripts, the reference to the storage or network device should adhere +to the section 'Supported dump target types and requirements' + Extra Binaries --------------