wait-online: exit early if all links are ignored (LP: #2036358)
If we are not given an explicit list of links to check, and all other
links are ignored because they are not required for online, then exit
early. Otherwise we will just timeout.
This fixes a regression caused by cf82f08fee
("Drop debian/UBUNTU-wait-online-exit-if-no-links-are-managed.patch").
Drop debian/UBUNTU-wait-online-exit-if-no-links-are-managed.patch (LP: #1982218)
The original intent of this patch is to exit early when no devices are
managed by networkd, and was developed against bionic. Since then,
wait-online gain an --any flag, and this code changed the context of
this patch. Namely, the logic added by the patch will not be reached
unless the --any flag is passed, which means the patch no longer works
as expected (systemd-networkd-wait-online.service does not use the
--any flag).
Further, if the --any flag is used, this patch will make wait-online
exit while a link is still in "configuring" state, which can mean that
units which depend on networkd-online.target may not actually have a
functioning link yet.
Because this patch is not serving it's original purpose, and is creating
a new issue, it seems the best thing to do is just drop the patch.
debian/systemd.postint: do not daemon re-exec if we could hit LP: #2013543
Unfortunately, there is not a simple way to check all cases in which
the running systemd will hit this bug when re-executing. To be safe, do
not try re-exec on upgrades from affected versions, and instead indicate
that a reboot is required.