kdump_pre: make notes more precise

Signed-off-by: Pingfan Liu <piliu@redhat.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Pingfan Liu 2020-07-15 17:28:04 +08:00 committed by Kairui Song
parent bda677c3d1
commit bc67c13651
4 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ do_kdump_pre()
fi fi
fi fi
# if any script fails, it just raises warning and continues
if [ -d /etc/kdump/pre.d ]; then if [ -d /etc/kdump/pre.d ]; then
for file in /etc/kdump/pre.d/*; do for file in /etc/kdump/pre.d/*; do
"$file" "$file"

View File

@ -89,7 +89,7 @@
# after the dump process, runs immediately before it. # after the dump process, runs immediately before it.
# Exit status of this binary is interpreted as follows: # Exit status of this binary is interpreted as follows:
# 0 - continue with dump process as usual # 0 - continue with dump process as usual
# non 0 - reboot the system # non 0 - run the final action (reboot/poweroff/halt)
# If /etc/kdump/pre.d directory exists, all files in # If /etc/kdump/pre.d directory exists, all files in
# the directory are collectively sorted and executed in # the directory are collectively sorted and executed in
# lexical order, after binary or script specified # lexical order, after binary or script specified

View File

@ -127,7 +127,7 @@ as follows:
.PP .PP
0 - continue with dump process as usual 0 - continue with dump process as usual
.PP .PP
non 0 - reboot the system non 0 - run the final action (reboot/poweroff/halt)
.PP .PP
If /etc/kdump/pre.d directory exists, all files in If /etc/kdump/pre.d directory exists, all files in
the directory are collectively sorted and executed in the directory are collectively sorted and executed in

View File

@ -553,7 +553,7 @@ Kdump Pre-Capture Executable
It is possible to specify a custom script or binary you wish to run before It is possible to specify a custom script or binary you wish to run before
capturing a vmcore. Exit status of this binary is interpreted: capturing a vmcore. Exit status of this binary is interpreted:
0 - continue with dump process as usual 0 - continue with dump process as usual
non 0 - reboot the system non 0 - run the final action (reboot/poweroff/halt)
If /etc/kdump/pre.d directory exists, all files in the directory are collectively If /etc/kdump/pre.d directory exists, all files in the directory are collectively
sorted and executed in lexical order, after binary or script specified sorted and executed in lexical order, after binary or script specified
kdump_pre parameter is executed. kdump_pre parameter is executed.