> * systemd's issue -- wait-online shouldn't be pausing when all interfaces are optional / undefined
I feel like we've had this discussion before, no? The concept of "optional" is defined by netplan, and is not 1:1 with systemd-networkd's concept of RequiredForOnline=, nor does it map to systemd-networkd-wait- online's intended behavior. I.e. in this case, systemd-networkd-wait- online is going to *wait* for any new devices to come up, and be configured. The systemd-networkd-wait-online drop-ins generated by netplan are meant to address this, and tune the configuration to match semantics of netplans "optional" etc. IIRC, one job of netplan is to ensure that if there are no interfaces, systemd-networkd-wait-online is not started at all. However, with dracut, systemd-networkd-wait-online is first loaded and/or started in the initrd. If netplan stuff is not in the initrd (I have no idea if it is or not), the above logic would not exist until after switch-root, which is too late. I think this would also explain why you don't see `ConditionPathExists=/run/networkd/initrd/neednet` in cat output later on: because the drop-in was placed in the initrd by dracut, so it is part of systemd-networkd-wait-online's load state at that point, but then the file is lost at switch-root. Which makes me wonder if one approach to this is to make sure systemd- networkd-wait-online.service *is* stopped before switch-root. systemd- networkd itself is, so I think this would make sense. Dave, can you please try adding: # /etc/systemd/system/systemd-networkd-wait-online.service.d/10-switch-root.conf [Unit] Before=initrd-switch-root.target Conflicts=initrd-switch-root.target and ensure that ends up in the initrd? That should make things fresh for systemd-networkd-wait-online.service after switch-root, and hopefully allow netplan's normal logic to work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2144891 Title: Rpi resolute dailies fail to use network resources To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2144891/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
