]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base: enable initqueue if extra devices are added
authorKairui Song <kasong@redhat.com>
Mon, 20 Aug 2018 10:43:19 +0000 (18:43 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 21 Aug 2018 11:03:20 +0000 (13:03 +0200)
When extra devices are added, initqueue should be enabled to make sure
those devices are present, so following services and routines could
use those devices.

See PR #442 for more detail.

modules.d/99base/module-setup.sh

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