diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:35:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:35:19 +0000 |
commit | b7e8d5af06ee840cc48217ca4629cf28aeeb3c50 (patch) | |
tree | 6aa8dc840b085de50db46e2ad0725eae248fef02 /debian/systemd.postrm | |
parent | Adding upstream version 252.22. (diff) | |
download | systemd-8178f7b6ee4e7e7ee4a0da287b189b5cb81d3ebf.tar.xz systemd-8178f7b6ee4e7e7ee4a0da287b189b5cb81d3ebf.zip |
Adding debian version 252.22-1~deb12u1.debian/252.22-1_deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/systemd.postrm')
-rw-r--r-- | debian/systemd.postrm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/systemd.postrm b/debian/systemd.postrm new file mode 100644 index 0000000..d03da26 --- /dev/null +++ b/debian/systemd.postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "$1" in + purge) + # clean up after manually enabled units in postinst + rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service + rm -f /etc/systemd/system/multi-user.target.wants/remote-fs.target + rm -f /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service + rm -f /etc/systemd/system/dbus-org.freedesktop.timesync1.service + rm -f /etc/systemd/system/sysinit.target.wants/systemd-pstore.service + rmdir --ignore-fail-on-non-empty /etc/systemd/system/getty.target.wants 2> /dev/null || true + rmdir --ignore-fail-on-non-empty /etc/systemd/system/multi-user.target.wants 2> /dev/null || true + rmdir --ignore-fail-on-non-empty /etc/systemd/system/sysinit.target.wants 2> /dev/null || true + + rm -f /var/lib/systemd/catalog/database + rmdir --ignore-fail-on-non-empty /var/lib/systemd/catalog 2> /dev/null || true + + rm -rf /var/lib/systemd/backlight/ + rm -rf /var/lib/systemd/rfkill/ + rm -rf /var/lib/systemd/timesync/ + + rm -f /var/lib/systemd/random-seed + + rm -f /var/log/README + rmdir --ignore-fail-on-non-empty /var/log/journal 2> /dev/null || true + ;; +esac + +#DEBHELPER# |