Bug#542289: drbd0.7-utils: Incorrect runlevels in init.d script

2009-11-18 Thread Petter Reinholdtsen
Hi.  Any hope of having this issue fixed soon?  Would be great to have
a fix in place before Squeeze. :)

Happy hacking,
-- 
Petter Reinholdtsen



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



Processed: Re: Bug#542289: drbd0.7-utils: Incorrect runlevels in init.d script

2009-10-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 severity 542289 serious
Bug #542289 [drbd0.7-utils] drbd0.7-utils: Incorrect runlevels in init.d script
Severity set to 'serious' from 'important'

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


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



Bug#542289: drbd0.7-utils: Incorrect runlevels in init.d script

2009-10-04 Thread Petter Reinholdtsen
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.0 +0200
+++ drbd0.7-0.7.25-pere/debian/drbd0.7-utils.postinst2009-10-04 
20:11:10.0 +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-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org