Fix kdump failure when mount target specified by dracut_args

commit 61e0169 changed definition of dump_fs function, so
need to do a mount target conversion before calling it.

Signed-off-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
Kairui Song 2020-06-11 13:59:14 +08:00
parent 077a7f19bb
commit 1a5d44d7f4

View File

@ -208,7 +208,10 @@ read_kdump_conf()
case "$config_opt" in case "$config_opt" in
dracut_args) dracut_args)
config_val=$(get_dracut_args_target "$config_val") config_val=$(get_dracut_args_target "$config_val")
[ -n "$config_val" ] && add_dump_code "dump_fs $config_val" if [ -n "$config_val" ]; then
config_val=$(get_mntpoint_from_target "$config_val")
add_dump_code "dump_fs $config_val"
fi
;; ;;
ext[234]|xfs|btrfs|minix|nfs) ext[234]|xfs|btrfs|minix|nfs)
config_val=$(get_mntpoint_from_target "$config_val") config_val=$(get_mntpoint_from_target "$config_val")