Fixing this issue for existing installations will need code in the
postinst to recover.  Here is a patch proposal.

diff -ru drbd0.7-0.7.25/debian/drbd0.7-utils.postinst 
drbd0.7-0.7.25-pere/debian/drbd0.7-utils.postinst
--- drbd0.7-0.7.25/debian/drbd0.7-utils.postinst     2009-10-04 
20:08:07.000000000 +0200
+++ drbd0.7-0.7.25-pere/debian/drbd0.7-utils.postinst        2009-10-04 
20:11:10.000000000 +0200
@@ -11,4 +11,15 @@
     test -b /dev/drbd$i || mknod -m 0660 /dev/drbd$i b 147 $i;
 done

+# Those using dependency based boot sequencing and installing
+# drbd0.7-utils before version 0.7.25-1.1 would miss the runlevel 2 and 4
+# start symlinks.  Recover from this.
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.7.25-1.1" \
+   && [ -f /etc/rc2.d/K[0-9][0-9]drbd ] \
+   && [ -f /etc/rc4.d/K[0-9][0-9]drbd ] \
+   && [ -f /etc/rc3.d/S[0-9][0-9]drbd ]
+then
+   update-rc.d -f drbd remove
+fi
+
 #DEBHELPER#



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to