Bug#934491: libelogind0: failing to switch from systemd to sysvinit-core/elogind results in libsystemd.so.0 disappearing

Adam Borowski kilobyte at angband.pl
Tue Aug 13 21:44:50 BST 2019

On Tue, Aug 13, 2019 at 10:36:04PM +0200, Thorsten Glaser wrote:
> > > I would also add that it surprises me that apt requires symbols from
> > > libsystemd.so.
> > 
> > libapt-pkg uses sd-bus, systemd's implementation of D-Bus (the same one
> > provided by libelogind), to tell systemd-logind (or elogind) not to
> > shut down while an apt frontend is still installing packages.
> Ah.
> Can that be moved into a separate subprocess (does sd-bus have
> a command-line interface) or, if not, dlopen() so it can be
> downgraded to a Recommends? (libsystemd0 is still quasi-Essential
> as most dæmons also Depend on it, but this would make apt at
> least work.)

The use is contained to a single function (apt-pkg/contrib/fileutl.cc
Inhibit()) thus implementing dlopen() should be easy.

⣾⠁⢠⠒⠀⣿⡁ Debian is one big family.  Including that weird uncle
⢿⡄⠘⠷⠚⠋⠀ and ultra-religious in-laws.

More information about the Debian-init-diversity mailing list