From c81c9552650971717f99118a295c3c3840da3209 Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Thu, 19 Sep 2024 23:10:48 -0400 Subject: [PATCH] fix(network): call both check_module and module_check Add back testing the module with check_module as well as module_check. Without this PR, on some Linux distributions (e.g. Void) adding `network` meta module no longer works as it tries and fails to install the preferred netowrking backend (network-manager). --- modules.d/40network/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3