The reference paelzer references is related to Ubuntu 14.04. In Ubuntu
18.04, "/etc/netplan/01-network-manager-all.yaml" defaults all network
device management to NetworkManager. Therefore any solution will have
to be to NetworkManager's systemd service file.
My solution which I've tested and
In respect to my above post, the correct target of the sed expression
should be as follows:
sed -i 's/After=network.target/After=NetworkManager-wait-online.service/'
/lib/systemd/system/dnsmasq.service
Please note the fix remains nonetheless valid and ensures that dnsmasq rises up
correctly
The problem lives in the [Unit] section in the After= directive which
when modified as follows raises dnsmasq.service unbroken on boot:
sed -i 's/After=network.target/After=NetworkManager-wait-
online.service/' /etc/systemd/system/multi-
user.target.wants/dnsmasq.service
That's a fairly tidy,