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

Thorsten Glaser t.glaser at tarent.de
Tue Aug 13 21:43:30 BST 2019


On Tue, 13 Aug 2019, Adam Borowski wrote:

> The prerm also makes systemd non-removable without uninstalling most packages,
> rebooting, then installing anew.  Requiring such a reinstall is pretty much
> RC in by book.
> 
> I've reported this before as #930105 but this got insta-closed+downgraded by

Hm ☹ but I just had this crazy idea:

1. Merge elogind into libpam-elogind (not the other way round),
   as elogind without libpam-elogind is apparently (see the
   other thread) not useful in any way.

2. Make libpam-elogind (which apparently Provides logind) work with
   libsystemd0 and not Conflict with systemd, only systemd-sysv.
   This means code changes (so it works with either library) and
   packaging changes: Depends: libelogind0 (>= …) | libsystemd0 (>= …)
   (note libelogind0 is first, for fresh installs)

3. Create a new package elogind which Depends on libelogind0 and
   libpam-elogind and Conflicts with systemd, to finish the install.
   It probably belongs into Section metapackages and has no content
   and can use dh_installdocs --link-doc=libpam-elogind so even its
   /usr/share/doc/elogind is just a symlink.

This way, a sequence would look like:

- apt-get install libpam-elogind
  ⇒ removes libpam-systemd and systemd-sysv
  ⇒ installs libpam-elogind and sysvinit-core
- reboot
- apt-get install elogind
  ⇒ removes systemd
  ⇒ replaces libsystemd0 with libelogind0

If this is not suitable I’m blaming the beer I’ve had with supper.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

**********

Mit der tarent Academy bieten wir auch Trainings und Schulungen in den
Bereichen Softwareentwicklung, Agiles Arbeiten und Zukunftstechnologien an.

Besuchen Sie uns auf www.tarent.de/academy. Wir freuen uns auf Ihren Kontakt.

**********




More information about the Debian-init-diversity mailing list