From 2fbcdf41e30795f97b740e5be2df4def2f5818ee Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 16 Mar 2020 23:18:38 +0800 Subject: [PATCH] kdumpctl: check hostonly-kernel-modules.txt for kernel module Since Dracut commit a0d9ad6 loaded-kernel-modules is renamed to hostonly-kernel-modules and contains all hostonly modules. So check hostonly-kernel-modules instead for module change. Signed-off-by: Kairui Song Acked-by: Pingfan Liu --- kdumpctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdumpctl b/kdumpctl index 88128a3..55e333b 100755 --- a/kdumpctl +++ b/kdumpctl @@ -406,7 +406,7 @@ check_dump_fs_modified() local _target _path _dracut_args local _target_drivers _module_name - local _old_drivers="$(lsinitrd $TARGET_INITRD -f /usr/lib/dracut/loaded-kernel-modules.txt | tr '\n' ' ')" + local _old_drivers="$(lsinitrd $TARGET_INITRD -f /usr/lib/dracut/hostonly-kernel-modules.txt | tr '\n' ' ')" # No need to check in case of mount target specified via "dracut_args". if is_mount_in_dracut_args; then