cloud-init already has *very* strong dependencies:

  Requires=networking.service
  Before=basic.target

(which is sorting the early boot fairly strictly). But I guess in the
same vein, if cloud-init wants to run in between networkd and
basic.target, it needs to grow an After=systemd-networkd.service. I also
suggest to replace the "Requires=networking.service" with
"After=networking.service" as ifupdown is not mandatory any more.

However, due to networkd's After=dbus.service this wouldn't work yet, as
dbus.service runs in late boot -- I proposed/tried to change this, but
it's not ready for that (bug 1629797,
https://bugs.freedesktop.org/show_bug.cgi?id=98254).

networkd can run without D-Bus in principle, but if that is not running
yet but dbus.socket is we'll run into deadlocks again -- and if we start
it before we need to teach it to connect to D-Bus once it becomes
available.

** Bug watch added: freedesktop.org Bugzilla #98254
   https://bugs.freedesktop.org/show_bug.cgi?id=98254

** Changed in: systemd (Ubuntu)
       Status: New => Triaged

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1636912

Title:
  systemd-networkd runs too late for cloud-init.service (net)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1636912/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to