]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base: enable the initqueue in both 'dracut --add-device' and 'dracut --mount' cases.
authorLianbo Jiang <lijiang@redhat.com>
Mon, 13 May 2019 08:09:25 +0000 (16:09 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 13:51:21 +0000 (15:51 +0200)
The commit 9f3c31cd8d68 ("99base: enable initqueue if extra devices are added")
only covers 'dracut --add-device' case, but it did not cover 'dracut --mount'
case, which causes the kdump failure in the Amazon virtual machine.

Lets make sure that the initqueue is enabled in both cases in order to wake up
the device in time.

Reported-by: Xiao Liang <xiliang@redhat.com>
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
modules.d/99base/module-setup.sh

index cd09c078a9f0aeacc1a927a63862f063538b2c30..97c2d83e9d5feb7b2cde8282db07d479930c5689 100755 (executable)
@@ -97,7 +97,7 @@ install() {
 
     ## save host_devs which we need bring up
     if [[ $hostonly_cmdline == "yes" ]]; then
-        if [[ -n $add_device ]]; then
+        if [[ -n "${host_devs[@]}" ]]; then
             dracut_need_initqueue
         fi
         if [[ -f "$initdir/lib/dracut/need-initqueue" ]] || ! dracut_module_included "systemd"; then