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 2022-01-10 11:46:41 +01:00 committed by Jóhann B. Guðmundsson
parent e86397de24
commit 22e683077a
1 changed files with 1 additions and 1 deletions

View File

@ -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"