On 23/05/24 at 20:02 +0100, Luca Boccassi wrote: > On Thu, 23 May 2024 at 19:57, Niels Thykier <ni...@thykier.net> wrote: > > > > Hi Michael and Luca > > > > I suspect you are better suited to debug this one. Let me know if I > > should change anything in the maintscript generated. > > We have dependencies between units, we have ExecStartPre= and friends, > there's many good ways to handle requirements before a service can be > started. Hooking into dpkg reconfigure doesn't seem like a good idea, > so I recommend to just fix that.
I agree that I should fix the way the SSH keys are generated in the vagrant image. However, my point is that there's a change between systemd 254 and systemd 255 that causes the debhelper-generated snippet to fail to restart services during dpkg-reconfigure if the service was previously in the 'Start request repeated too quickly.' state. I hit this in the context of the Vagrant image, but it could hit users in other contexts as well. Lucas