Discussed that upstream: The gist of it is:
--------- 8< --------------
if you want to be an early boot service, then you should use something like
this:
Before=sysinit.target
And that's all.
Inserting yourself between the sockets and the regular services (which your
suggested deps do) is highly problematic, if you actually intend to make use of
the sockets, as then you will make the system hang, as to fulfill your requests
you need the services you are delaying...
--------- 8< --------------
So replacing cloud-init.service's
Before=basic.target
Before=dbus.socket
with
Before=sysinit.target
should DTRT. dbus.socket (and all other sockets) will start after
sysinit.target as part of basic.target.
** Changed in: dbus (Ubuntu)
Status: In Progress => Won't Fix
** Changed in: dbus (Ubuntu)
Assignee: Martin Pitt (pitti) => (unassigned)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629797
Title:
resolve service in nsswitch.conf adds 25 seconds to failed lookups
before systemd-resolved is up
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1629797/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs