]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network): user variable for sdnetworkd instead of path
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 22 Apr 2021 13:22:42 +0000 (13:22 +0000)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 22 Apr 2021 13:40:58 +0000 (15:40 +0200)
Use globalvariable for systemd networkd instead of path

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

index 818a284a8766cf05a16b365e5d019412f19abeef..4c63e8284c8288a2b7ddc45131b23c1ffd274e3b 100755 (executable)
@@ -21,7 +21,7 @@ depends() {
             network_handler="network-wicked"
         elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
             network_handler="network-manager"
-        elif [[ -x $dracutsysrootdir/usr/lib/systemd/systemd-networkd ]]; then
+        elif [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
             network_handler="systemd-networkd"
         else
             network_handler="network-legacy"