Skip to content

Commit

Permalink
fix(network): test for systemctl binary for network-manager
Browse files Browse the repository at this point in the history
The in-tree network-manager dracut module depends on dbus
dracut module, which in turn depends on systemd dracut module,
which in turn depends on systemctl.
  • Loading branch information
LaszloGombos committed Dec 10, 2022
1 parent fd9cd02 commit 20fd7ed
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() {
network_handler="network-wicked"
elif [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; then
network_handler="connman"
elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
elif find_binary systemctl > /dev/null && [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator || -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
network_handler="network-manager"
elif [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
network_handler="systemd-networkd"
Expand Down

0 comments on commit 20fd7ed

Please sign in to comment.