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