Rebuild initrd dependency during kdump restart
kdumpctl now parses mount points in determining the partition to save the dump to. So /etc/fstab can be considered a configuration file for kdump. Change adds an additional depenedency check on /etc/fstab when kdump is restarted. Signed-off-by: Jerry Hoemann <jerry.hoemann@hp.com> Acked-by: WANG Chao <chaowang@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
e08ef78a56
commit
d2f87357e8
2
kdumpctl
2
kdumpctl
@ -352,7 +352,7 @@ check_rebuild()
|
||||
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 /etc/fstab"
|
||||
|
||||
check_exist "$files" && check_executable "$EXTRA_BINS"
|
||||
[ $? -ne 0 ] && return 1
|
||||
|
Loading…
Reference in New Issue
Block a user