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 <piliu@redhat.com>
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 <piliu@redhat.com>
This commit is contained in:
parent
4559f7bbd5
commit
149a6dc9b2
5
mkdumprd
5
mkdumprd
@ -457,6 +457,11 @@ if ! is_fadump_capable; then
|
|||||||
add_dracut_arg "--no-hostonly-default-device"
|
add_dracut_arg "--no-hostonly-default-device"
|
||||||
fi
|
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[@]}" "$@"
|
dracut "${dracut_args[@]}" "$@"
|
||||||
|
|
||||||
_rc=$?
|
_rc=$?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user