]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network): wrong test of wicked unit
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 10 Jan 2022 10:46:41 +0000 (11:46 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 22:56:23 +0000 (22:56 +0000)
The test for the wicked service is never met because it
does not have execute permission.

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

index 9fd5d806d74742dac385b453df9d4c9925897f4c..d5edbf81399fb47a851d269d2a92f539fc7e9127 100755 (executable)
@@ -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"