summaryrefslogtreecommitdiff
path: root/recipes-support
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-11-14 01:46:39 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-12-15 15:44:39 +0100
commitc34b0696bcb6b09b98b9af17612056dc160ece16 (patch)
tree44c468be8a68b57ea898bd6e470fc285bd6ea9dd /recipes-support
parent062e32be9f161da99bad3b76d741449cd7e02a6d (diff)
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 <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/libusbg/libusbg/usbg.service2
1 files changed, 1 insertions, 1 deletions
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