On Thu, Jun 04, 2020 at 09:24:22PM +0300, Aleksey Tulinov wrote: > On Wed, 9 Oct 2019 17:36:07 +0200 David Kalnischkies > <[email protected]> wrote: > > > As Julian already said, it is "just" used for its dbus communication > > implementation. We don't require systemd to be your init or to be even > > functional. So I guess proposing an alternative which a) works equally > > well and b) doesn't add additional bootstrapping complications has > > better chances of acceptance – assuming that exists as the obvious > > choice libdbus links against libsystemd as well even before checking a) > > and b) … > > > > I'm not a big expert in systemd and never will be, but perhaps > `systemd-inhibit --what="shutdown" --mode="block" apt ...` should do > about the same thing. If every invocation of apt should be like that > then maybe `alias apt='systemd-inhibit --what="shutdown" > --mode="block" apt'` in .bashrc can do the trick. This does not > require any patching whatsoever.
What you're saying is akin to I'm not a big expert in locking and never will be, but perhaps `flock apt ...` should do the about same thing, and you don't need locking Think a second about what your writing. > > This linking to libsystemd is redundant. If issue is with dpkg leaving > system in inconsistent state when interrupted, then perhaps this issue > has to be fixed in dpkg, if issue is with systemd incorrectly > interrupting dpkg, then in systemd. I think that dependency on > systemd: The issue is the same we have frontend lock for, but at shutdown. The facility we use is specifically to prevent people from shutting down in a clear and working manner. Of course, once we avoid the need to run dpkg multiple times, it would be nice if dpkg made use of this mechanism itself. > > It would be really nice if this dependency is removed and ideally > underlying issue(s) properly fixed instead of applying band aid here > and there. This _is_ the proper fix for the issue. Now, to put it for your sysvinit poisoned mind, this is somewhat similar to having a K01 script that waits for /var/lib/dpkg/lock-frontend to be released; but - it actually prevents you from shutting down in the first place, rather than just holding up the shutdown. In any case, we have since grown additional places in apt that make use of libsystemd anyway. So, please use Devuan and leave us alone. Thanks! -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en

