Followup-For: Bug #777184 Hi Vagrant,
I just remembered that the conffile removal for the obsolete and potentially harmful initscript should be backported to wheezy ... Attached is a patch and in my tests in piuparts this seems to work fine. We cannot use .mainscript files in wheezy, so there are 4 maintainer scripts added/changed instead. Andreas
diff -Nru ltsp-5.4.2/debian/changelog ltsp-5.4.2/debian/changelog --- ltsp-5.4.2/debian/changelog 2014-04-03 21:15:52.000000000 +0200 +++ ltsp-5.4.2/debian/changelog 2015-07-19 14:14:27.000000000 +0200 @@ -1,3 +1,14 @@ +ltsp (5.4.2-6+deb7u2) wheezy; urgency=medium + + * debian/ltsp-client-core.{pre,post}{inst,rm}: Add dpkg_maintscript_helper + rm_conffile calls to remove obsolete (and potentially harmful) + /etc/init.d/ltsp-client-setup and /etc/default/ltsp-client-setup + leftover from squeeze upgrades (Closes: #777184). + Add Pre-Depends: dpkg (>= 1.15.7.2), already satisfied in squeeze. + Thanks to Andreas Beckmann! + + -- Andreas Beckmann <a...@debian.org> Sun, 19 Jul 2015 13:59:54 +0200 + ltsp (5.4.2-6+deb7u1) wheezy; urgency=medium * Apply patch to fix remote audio on thinclients (Closes: #738553). diff -Nru ltsp-5.4.2/debian/control ltsp-5.4.2/debian/control --- ltsp-5.4.2/debian/control 2013-01-09 06:59:50.000000000 +0100 +++ ltsp-5.4.2/debian/control 2015-07-19 14:06:14.000000000 +0200 @@ -89,6 +89,7 @@ LTSP stands for 'Linux Terminal Server Project'. Package: ltsp-client-core +Pre-Depends: dpkg (>= 1.15.7.2) Depends: ${misc:Depends}, ${shlibs:Depends}, console-setup, diff -Nru ltsp-5.4.2/debian/ltsp-client-core.postinst ltsp-5.4.2/debian/ltsp-client-core.postinst --- ltsp-5.4.2/debian/ltsp-client-core.postinst 2012-11-19 23:33:11.000000000 +0100 +++ ltsp-5.4.2/debian/ltsp-client-core.postinst 2015-07-19 14:16:05.000000000 +0200 @@ -14,6 +14,9 @@ # Enable debconf . /usr/share/debconf/confmodule +dpkg-maintscript-helper rm_conffile /etc/default/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. diff -Nru ltsp-5.4.2/debian/ltsp-client-core.postrm ltsp-5.4.2/debian/ltsp-client-core.postrm --- ltsp-5.4.2/debian/ltsp-client-core.postrm 1970-01-01 01:00:00.000000000 +0100 +++ ltsp-5.4.2/debian/ltsp-client-core.postrm 2015-07-19 14:14:29.000000000 +0200 @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +dpkg-maintscript-helper rm_conffile /etc/default/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" + +#DEBHELPER# diff -Nru ltsp-5.4.2/debian/ltsp-client-core.preinst ltsp-5.4.2/debian/ltsp-client-core.preinst --- ltsp-5.4.2/debian/ltsp-client-core.preinst 1970-01-01 01:00:00.000000000 +0100 +++ ltsp-5.4.2/debian/ltsp-client-core.preinst 2015-07-19 14:14:29.000000000 +0200 @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +dpkg-maintscript-helper rm_conffile /etc/default/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" + +#DEBHELPER# diff -Nru ltsp-5.4.2/debian/ltsp-client-core.prerm ltsp-5.4.2/debian/ltsp-client-core.prerm --- ltsp-5.4.2/debian/ltsp-client-core.prerm 1970-01-01 01:00:00.000000000 +0100 +++ ltsp-5.4.2/debian/ltsp-client-core.prerm 2015-07-19 14:14:29.000000000 +0200 @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +dpkg-maintscript-helper rm_conffile /etc/default/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" +dpkg-maintscript-helper rm_conffile /etc/init.d/ltsp-client-setup 5.4.2-6+deb7u2~ -- "$@" + +#DEBHELPER#