On 03/16/2020 11:20 PM, Kairui Song wrote:
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 <kasong(a)redhat.com>
---
kdumpctl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdumpctl b/kdumpctl
index 0bf5c20..414d1ab 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
Acked-by: Pingfan Liu <piliu(a)redhat.com>