diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh index c8ba54402..65c1b6605 100755 --- a/modules.d/40network/module-setup.sh +++ b/modules.d/40network/module-setup.sh @@ -21,7 +21,7 @@ depends() { for module in network-manager systemd-networkd connman; do # install the first viable module, unless there omitted module_check $module > /dev/null 2>&1 - if [[ $? == 255 ]] && ! [[ " $omit_dracutmodules " == *\ $module\ * ]]; then + if [[ $? == 255 ]] && ! [[ " $omit_dracutmodules " == *\ $module\ * ]] && check_module "$module"; then echo "$module" return 0 fi