Browse Source

fix(network): wrong test of wicked unit

The test for the wicked service is never met because it
does not have execute permission.
master
Antonio Alvarez Feijoo 2 years ago committed by Jóhann B. Guðmundsson
parent
commit
22e683077a
  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 [[ -x $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
if [[ -e $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
network_handler="network-wicked"
elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
network_handler="network-manager"

Loading…
Cancel
Save