Skip to content

Commit

Permalink
fix(network): call both check_module and module_check
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
jozzsi authored and LaszloGombos committed Sep 29, 2024
1 parent 7d9158f commit c81c955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/40network/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c81c955

Please sign in to comment.