From 57eefcf70587f06b8874a3b3cf31e9ab70c03227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= Date: Tue, 27 Apr 2021 09:55:12 +0000 Subject: [PATCH] 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. --- 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 4c63e8284c..648d84d636 100755 --- a/modules.d/40network/module-setup.sh +++ b/modules.d/40network/module-setup.sh @@ -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"