From ea4356ea68a893b69bbb2c78f64043784073db07 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Sat, 14 Nov 2015 01:46:39 +0100 Subject: libusbg: make sure USB RNDIS Gadget is started before networkd Despite the reordering of when to load the USB Gadget configuration with commit fadb16f153aa ("libusbg: enable USB Gadgets after Connman to avoid interference") the network device ended up to be down after startup. It seems that there is a race condition in systemd-networkd which triggers especially in combination with USB Gadget, a issue on the systemd issue tracker has been created: https://github.com/systemd/systemd/issues/1784 There have been various changes related to link handling between systemd 219 and the latest version 227. It is possible that the issue is already solved. Until this has been resolved, explicitly load the USB Gadget before starting systemd-networkd seems to get around the issue. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- recipes-support/libusbg/libusbg/usbg.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-support/libusbg/libusbg/usbg.service b/recipes-support/libusbg/libusbg/usbg.service index 4119ed4..19863d0 100644 --- a/recipes-support/libusbg/libusbg/usbg.service +++ b/recipes-support/libusbg/libusbg/usbg.service @@ -1,7 +1,7 @@ [Unit] Description=Load default USB gadget schema g1.schema ConditionPathExists=/etc/usbg/g1.schema -After=connman.service +Before=systemd-networkd.service [Service] Type=oneshot -- cgit v1.2.3