Skip to content

Instantly share code, notes, and snippets.

@kuzmik
Last active January 10, 2018 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuzmik/b8881bb5b5edf196c9e617d1fc6bf94e to your computer and use it in GitHub Desktop.
Save kuzmik/b8881bb5b5edf196c9e617d1fc6bf94e to your computer and use it in GitHub Desktop.
srsly fuck systemd
apt install -y sysvinit-core locate
cp /usr/share/sysvinit/inittab /etc/inittab
echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' > /etc/apt/preferences.d/eat-shit-systemd
echo -e 'Package: libsystemd0\nPin: version *\nPin-Priority: 500\n' >> /etc/apt/preferences.d/eat-shit-systemd
reboot
apt remove -y --purge --auto-remove systemd dbus libdbus-1-3
apt update
apt -y upgrade
apt autoremove
apt autoclean
updatedb
locate systemd | egrep -v '(eat-shit-systemd|libsystemd)' | xargs rm -rf
for user in "systemd-timesync" "systemd-network" "systemd-resolve" "systemd-bus-proxy"; do deluser -q $user; done
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment