rcn-ee / repos

repos.rcn-ee.com
41 stars 30 forks source link

generic-board-startup.service should be started before dnsmasq #35

Closed vvavrychuk closed 6 years ago

vvavrychuk commented 6 years ago

generic-board-startup.service is responsible for allocation of Ethernet over usb interfaces. Then dnsmasq might be used for DHCP server on this interfaces. It would be create if generic-board-startup.service has Before=dnsmasq to ensure ordering.

This starts to be important when we use dnsmasq with bind-interfaces option when it will fail if interfaces are not yet available.

vvavrychuk commented 6 years ago

We can use bind-dynamic option of dnsmasq which does almost everything in the same way as bind-interfaces except it works fine dynamic creation of with interfaces.