From: Lianbo Jiang Date: Mon, 13 May 2019 08:09:25 +0000 (+0800) Subject: 99base: enable the initqueue in both 'dracut --add-device' and 'dracut --mount' cases. X-Git-Tag: 050~211 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84c862d8f3993c93a3e90c70e7a05fdd8ca4a86f;p=thirdparty%2Fdracut.git 99base: enable the initqueue in both 'dracut --add-device' and 'dracut --mount' cases. 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 Signed-off-by: Lianbo Jiang --- diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh index cd09c078a..97c2d83e9 100755 --- a/modules.d/99base/module-setup.sh +++ b/modules.d/99base/module-setup.sh @@ -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