|
|
e83cdd |
From 17cd55169c3549d85ba3e4d7e0e81c496d1b2940 Mon Sep 17 00:00:00 2001
|
|
|
e83cdd |
From: Lianbo Jiang <lijiang@redhat.com>
|
|
|
e83cdd |
Date: Mon, 13 May 2019 16:09:25 +0800
|
|
|
e83cdd |
Subject: [PATCH] 99base: enable the initqueue in both 'dracut --add-device'
|
|
|
e83cdd |
and 'dracut --mount' cases.
|
|
|
e83cdd |
|
|
|
e83cdd |
The commit 9f3c31cd8d68 ("99base: enable initqueue if extra devices are added")
|
|
|
e83cdd |
only covers 'dracut --add-device' case, but it did not cover 'dracut --mount'
|
|
|
e83cdd |
case, which causes the kdump failure in the Amazon virtual machine.
|
|
|
e83cdd |
|
|
|
e83cdd |
Lets make sure that the initqueue is enabled in both cases in order to wake up
|
|
|
e83cdd |
the device in time.
|
|
|
e83cdd |
|
|
|
e83cdd |
Reported-by: Xiao Liang <xiliang@redhat.com>
|
|
|
e83cdd |
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
|
|
|
e83cdd |
(cherry picked from commit e0fc62f619ba55a96179382e22f7665e969c3d42)
|
|
|
e83cdd |
|
|
|
e83cdd |
Resolves: #1678094
|
|
|
e83cdd |
---
|
|
|
e83cdd |
modules.d/99base/module-setup.sh | 2 +-
|
|
|
e83cdd |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
e83cdd |
|
|
|
e83cdd |
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
|
|
|
e83cdd |
index 21523fc9..c9ead01d 100755
|
|
|
e83cdd |
--- a/modules.d/99base/module-setup.sh
|
|
|
e83cdd |
+++ b/modules.d/99base/module-setup.sh
|
|
|
e83cdd |
@@ -93,7 +93,7 @@ install() {
|
|
|
e83cdd |
|
|
|
e83cdd |
## save host_devs which we need bring up
|
|
|
e83cdd |
if [[ $hostonly_cmdline == "yes" ]]; then
|
|
|
e83cdd |
- if [[ -n $add_device ]]; then
|
|
|
e83cdd |
+ if [[ -n "${host_devs[@]}" ]]; then
|
|
|
e83cdd |
dracut_need_initqueue
|
|
|
e83cdd |
fi
|
|
|
e83cdd |
if [[ -f "$initdir/lib/dracut/need-initqueue" ]] || ! dracut_module_included "systemd"; then
|
|
|
e83cdd |
|