|
Harald Hoyer |
9d5d75 |
From 9f3c31cd8d68b5272f803063247362a644720227 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Kairui Song <kasong@redhat.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Mon, 20 Aug 2018 18:43:19 +0800
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] 99base: enable initqueue if extra devices are added
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
When extra devices are added, initqueue should be enabled to make sure
|
|
Harald Hoyer |
9d5d75 |
those devices are present, so following services and routines could
|
|
Harald Hoyer |
9d5d75 |
use those devices.
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
See PR #442 for more detail.
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
modules.d/99base/module-setup.sh | 3 +++
|
|
Harald Hoyer |
9d5d75 |
1 file changed, 3 insertions(+)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
9d5d75 |
index a1569b12..731c6dcc 100755
|
|
Harald Hoyer |
9d5d75 |
--- a/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
9d5d75 |
+++ b/modules.d/99base/module-setup.sh
|
|
Harald Hoyer |
9d5d75 |
@@ -94,6 +94,9 @@ install() {
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
## save host_devs which we need bring up
|
|
Harald Hoyer |
9d5d75 |
if [[ $hostonly_cmdline == "yes" ]]; then
|
|
Harald Hoyer |
9d5d75 |
+ if [[ -n $add_device ]]; then
|
|
Harald Hoyer |
9d5d75 |
+ dracut_need_initqueue
|
|
Harald Hoyer |
9d5d75 |
+ fi
|
|
Harald Hoyer |
9d5d75 |
if [[ -f "$initdir/lib/dracut/need-initqueue" ]] || ! dracut_module_included "systemd"; then
|
|
Harald Hoyer |
9d5d75 |
(
|
|
Harald Hoyer |
9d5d75 |
if dracut_module_included "systemd"; then
|
|
Harald Hoyer |
9d5d75 |
|