This repo contains the debian directory necessary to build a Debian Bookworm based debian package for MX Linux that has support for systemd-shim. It needs a modified systemd-shim (available here: https://github.com/knelsonmeister/systemd-shim)
Systemd-shim allows a system to boot up using a SYSV init, but still be able to support the modern programs that depend on systemd. It is not perfect, but it allows for a Linux distribution to support both SYSV init and systemd as a choice in the grub boot menu. MX Linux does just that. Debian used to support systemd-shim, but support was dropped in Debian Buster. This repo and the systemd-shim repo linked above are an effort to maintain the systemd-shim support in Debian Bookworm.
Based on: http://deb.debian.org/debian/pool/main/s/systemd/systemd_252.4-2.debian.tar.xz
- Propped forward 4 patches from old systemd that were removed when systemd-shim was removed
- Updated debian/patches/series file to add the 4 patches
- Updated debian/control to modify dependency for libpam-systemd to allow systemd-shim or systemd-sysv
- Restored old user runtime path functionality
NOTE: The tests phase of the compile will fail if compiling on a system not running systemd as init. By default MX Linux does not run systemd as init, but it can be selected in the grub menu on boot.
git clone https://github.com/knelsonmeister/systemd.git
mv systemd systemd-stable-252.4
wget http://deb.debian.org/debian/pool/main/s/systemd/systemd_252.4.orig.tar.gz
tar xf systemd_252.4.orig.tar.gz
cd systemd-stable-252.4
dpkg-buildpackage -uc -us -b
cd ..