AlbiWiki

fait par moi pour moi (et accessoirement vous aussi)

Outils pour utilisateurs

Outils du site


debian_without_shitstemd

Change Debian from systemd to sysvinit

Saved from without-systemd.org and it's Stretch update (updated and simplified for bullseye by myself)

About these instructions

These instructions are for installing the sysvinit init program on Debian systems. This is done by installing the sysvinit-core package for an init system that's not systemd, and a set of elogind packages to provide backwards compatibility with the systemd library packages.

These instructions work on buster systems, but also you can run these commands near the end of the Debian install procedure if you want to remove systemd before you even finish installing Debian.

Install the relevant sysvinit and elogind compatibility packages

To install the sysvinit-core package and remove the systemd packages, run:

apt install sysvinit-core

Reboot your system

reboot

Create an APT preferences pin to prevent reinstall of shitstemd

echo -e 'Package: systemd-sysv\nPin: release *\nPin-Priority: -1\n' > /etc/apt/preferences.d/nosystemd

Optional steps

  • Install udisks2 and/or policykit if needed for graphical desktops
  • Remove the systemd packages, including libpam-systemd:
    apt remove --purge --auto-remove systemd
debian_without_shitstemd.txt · Dernière modification : 2023/05/06 16:58 de albirew