Skip to content

Commit

Permalink
fix(network): wrong test of wicked unit
Browse files Browse the repository at this point in the history
The test for the wicked service is never met because it
does not have execute permission.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Feb 2, 2022
1 parent e86397d commit 22e6830
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 @@ -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"
Expand Down

0 comments on commit 22e6830

Please sign in to comment.