Control: tags -1 patch Marco,
On Tue, Mar 11, 2025 at 10:39:48AM +0100, Marco d'Itri wrote: > so if you want this change then send a tested patch. This patch works for me and is similar in functionality to udev.postinst. Mark commit 070ef4aba05e3c85bd28a6e726223002c4a34b7e Author: Mark Hindley <m...@hindley.org.uk> Date: Wed Mar 12 08:16:57 2025 +0000 d/kmod.postinst: remove LSB symlinks with update-rc.d but only if /etc/init.d/kmod doesn't exist. The test for /etc/init.d/kmod can be removed once the patch for #680293 is accepted. Closes: #1100035 diff --git a/debian/kmod.postinst b/debian/kmod.postinst index a3bd12b..12a21c2 100644 --- a/debian/kmod.postinst +++ b/debian/kmod.postinst @@ -33,7 +33,10 @@ sysvinit_cleanup() { [ "$2" ] || return 0 dpkg --compare-versions $2 lt 34-3~ || return 0 - rm -f /etc/rcS.d/[SK]*kmod + # update-rc.d removes symlinks even if LSB initscript exists, contrary to + # update-rc-d(8). See #680293. Can be removed once it is fixed. + [ -f /etc/init.d/kmod ] && return 0 + update-rc.d kmod remove || true } case "$1" in