Skip to content

Commit 57eefcf

Browse files
johannbgharaldh
authored andcommitted
fix(network): use wicked unit instead of find_binary
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.
1 parent 3c244c7 commit 57eefcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules.d/40network/module-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ depends() {
1717
done
1818

1919
if [ -z "$network_handler" ]; then
20-
if find_binary wicked &> /dev/null; then
20+
if [[ -x $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
2121
network_handler="network-wicked"
2222
elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
2323
network_handler="network-manager"

0 commit comments

Comments
 (0)