From 149a6dc9b22d8e1e965ea24f04e9f09f73a716cb Mon Sep 17 00:00:00 2001 From: Pingfan Liu Date: Mon, 24 Jan 2022 09:27:24 +0800 Subject: [PATCH] mkdumprd (RHEL-only): add nvme module by force Resolves: bz2017121 Upstream: RHEL-only The following dracut commit can not detect the nvme module in some special case, which causes vmcore dump failure. commit c86f4d286000d1e76fd405560b4114537e2cbbff Author: Pingfan Liu Date: Wed Jul 28 18:13:43 2021 +0800 fix(kernel-modules): detect block device's hardware driver As a workaround, adding nvme module by force at present, and after a real fix in dracut, we can revert this patch. Signed-off-by: Pingfan Liu --- mkdumprd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkdumprd b/mkdumprd index 593ec77..500146b 100644 --- a/mkdumprd +++ b/mkdumprd @@ -457,6 +457,11 @@ if ! is_fadump_capable; then add_dracut_arg "--no-hostonly-default-device" fi +# This is RHEL-only to work around nvme problem, then real fix should go to dracut +if [[ -d /sys/module/nvme ]]; then + add_dracut_arg "--add-drivers" "nvme" +fi + dracut "${dracut_args[@]}" "$@" _rc=$?