From 1a5d44d7f45edd511fcb852901782bc497721281 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Thu, 11 Jun 2020 13:59:14 +0800 Subject: [PATCH] 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 --- dracut-kdump.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dracut-kdump.sh b/dracut-kdump.sh index 9c8f3a9..b71278d 100755 --- a/dracut-kdump.sh +++ b/dracut-kdump.sh @@ -208,7 +208,10 @@ read_kdump_conf() case "$config_opt" in dracut_args) 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) config_val=$(get_mntpoint_from_target "$config_val")