fab351
From 8eb08e55286e77f005246d1db1bfd2adf4a0e40b Mon Sep 17 00:00:00 2001
fab351
From: Lubomir Rintel <lkundrak@v3.sk>
fab351
Date: Tue, 27 Nov 2018 15:30:48 +0100
fab351
Subject: [PATCH] network-manager: call the online hook for connected devices
fab351
fab351
Look for "connection-uuid" instead of "managed" to determine the devices
fab351
that are actually activated with a connection and call the online hook.
fab351
fab351
This fixes the anaconda-net root mount, which utilizes the online hook.
fab351
fab351
(cherry picked from commit 79a17b0112995eb60c85c64d15070c52f213b28d)
fab351
---
fab351
 modules.d/35network-manager/nm-run.sh | 3 ++-
fab351
 1 file changed, 2 insertions(+), 1 deletion(-)
fab351
fab351
diff --git a/modules.d/35network-manager/nm-run.sh b/modules.d/35network-manager/nm-run.sh
fab351
index f6defa99..0f943631 100755
fab351
--- a/modules.d/35network-manager/nm-run.sh
fab351
+++ b/modules.d/35network-manager/nm-run.sh
fab351
@@ -9,8 +9,9 @@ fi
fab351
 for _i in /sys/class/net/*/
fab351
 do
fab351
     state=/run/NetworkManager/devices/$(cat $_i/ifindex)
fab351
-    grep -q managed=true $state 2>/dev/null || continue
fab351
+    grep -q connection-uuid= $state 2>/dev/null || continue
fab351
     ifname=$(basename $_i)
fab351
     sed -n 's/root-path/new_root_path/p' <$state >/tmp/dhclient.$ifname.dhcpopts
fab351
+    source_hook initqueue/online $ifname
fab351
     /sbin/netroot $ifname
fab351
 done
fab351