Browse Source

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.
master
Jóhann B. Guðmundsson 3 years ago committed by Harald Hoyer
parent
commit
57eefcf705
  1. 2
      modules.d/40network/module-setup.sh

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

@ -17,7 +17,7 @@ depends() { @@ -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"

Loading…
Cancel
Save