From 5db9a9988cae3b1a57392b13f935529420b32f40 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 29 Jun 2011 02:53:34 +0200 Subject: [PATCH] Remove obsolete conffiles from /etc/tmpfiles.d on upgrades. Those files are installed in /usr/lib/tmpfiles.d now. --- debian/changelog | 2 ++ debian/systemd.postinst | 4 ++++ debian/systemd.postrm | 4 ++++ debian/systemd.preinst | 6 +++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bc2f14aa..d4f3c06e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ systemd (29-1) UNRELEASED; urgency=low anymore in debian/rules. * Install /usr/lib directory for binfmt.d, modules-load.d, tmpfiles.d and sysctl.d. + * Remove obsolete conffiles from /etc/tmpfiles.d on upgrades. Those files + are installed in /usr/lib/tmpfiles.d now. -- Tollef Fog Heen Wed, 08 Jun 2011 16:14:31 +0200 diff --git a/debian/systemd.postinst b/debian/systemd.postinst index 75d19cc2..5efbfe6d 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -22,4 +22,8 @@ systemd-machine-id-setup dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/legacy.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/systemd.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/x11.conf 25-2 systemd -- "$@" + #DEBHELPER# diff --git a/debian/systemd.postrm b/debian/systemd.postrm index b38a9db5..dfa97dc6 100644 --- a/debian/systemd.postrm +++ b/debian/systemd.postrm @@ -9,6 +9,10 @@ fi dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/legacy.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/systemd.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/x11.conf 25-2 systemd -- "$@" + #DEBHELPER# exit 0 diff --git a/debian/systemd.preinst b/debian/systemd.preinst index 248546d7..3028dadf 100644 --- a/debian/systemd.preinst +++ b/debian/systemd.preinst @@ -9,6 +9,10 @@ fi dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/legacy.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/systemd.conf 25-2 systemd -- "$@" +dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/x11.conf 25-2 systemd -- "$@" + #DEBHELPER# -exit 0 \ No newline at end of file +exit 0 -- 2.39.5