* invoke-rc.d, service: Only ignore systemd unit dependencies before
multi-user.target. "systemctl is-system-running" might still be false in
case of running jobs for device/mount/hotplug/dynamic actions units. But
in those cases we already do want to respect unit dependencies, as the
system is booted up sufficiently to avoid dependency loops. Thus weaken
the condition to "multi-user.target is active".
This does not change the behaviour for single-user: is-system-running has
always been false there, so dependencies continue to be ignored.
Fixes installation of packages like PostgreSQL under cloud-init or when
manually installing packages right after booting.
This bug was fixed in the package init-system-helpers - 1.29ubuntu3
---------------
init-system-helpers (1.29ubuntu3) xenial-proposed; urgency=medium
* invoke-rc.d, service: Only ignore systemd unit dependencies before user.target. "systemctl is-system-running" might still be false in mount/hotplug/ dynamic actions units. But
multi-
case of running jobs for device/
in those cases we already do want to respect unit dependencies, as the
system is booted up sufficiently to avoid dependency loops. Thus weaken
the condition to "multi-user.target is active".
This does not change the behaviour for single-user: is-system-running has
always been false there, so dependencies continue to be ignored.
Fixes installation of packages like PostgreSQL under cloud-init or when
manually installing packages right after booting.
LP: #1576692
-- Martin Pitt <email address hidden> Mon, 12 Sep 2016 10:57:57 +0200