Skip to content

Commit

Permalink
fix(network): use wicked unit instead of find_binary
Browse files Browse the repository at this point in the history
dracut-install triggers "ERROR: installing '/usr/lib/wicked/bin/*'"
when find_binary is being used to determine if wicked is installed
so let's just check for the wicked type service unit instead.
  • Loading branch information
johannbg authored and haraldh committed Apr 28, 2021
1 parent 3c244c7 commit 57eefcf
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 @@ -17,7 +17,7 @@ depends() {
done

if [ -z "$network_handler" ]; then
if find_binary wicked &> /dev/null; then
if [[ -x $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
network_handler="network-wicked"
elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
network_handler="network-manager"
Expand Down

0 comments on commit 57eefcf

Please sign in to comment.