99base: enable initqueue if extra devices are added

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.
master
Kairui Song 2018-08-20 18:43:19 +08:00 committed by Harald Hoyer
parent eb18a1fe29
commit 9f3c31cd8d
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ install() {


## save host_devs which we need bring up ## save host_devs which we need bring up
if [[ $hostonly_cmdline == "yes" ]]; then 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 [[ -f "$initdir/lib/dracut/need-initqueue" ]] || ! dracut_module_included "systemd"; then
( (
if dracut_module_included "systemd"; then if dracut_module_included "systemd"; then