Bug#542169: clvm: Incorrect provides, runlevels and dependencies in init.d script)
Petter Reinholdtsen
pere at hungry.com
Fri Sep 18 16:43:40 UTC 2009
retitle 542169 Patch used in NMU version 2.02.51-4.1
thanks
This is the patch I used for my NMU. It was just uploaded to the 1
day delayed queue. Please let me know if I should delay it further.
diff -u lvm2-2.02.51/debian/changelog lvm2-2.02.51/debian/changelog
--- lvm2-2.02.51/debian/changelog
+++ lvm2-2.02.51/debian/changelog
@@ -1,3 +1,12 @@
+lvm2 (2.02.51-4.1) unstable; urgency=low
+
+ * Non-maintainer upload to fix release goal.
+ * Correct provides, depends and runlevels in clvm init.d script,
+ and add code in postinst to recover systems using the wrong
+ information (Closes: #542169).
+
+ -- Petter Reinholdtsen <pere at debian.org> Fri, 18 Sep 2009 16:58:08 +0200
+
lvm2 (2.02.51-4) unstable; urgency=low
* Fix version in conffile removal. (closes: #542942)
diff -u lvm2-2.02.51/debian/clvm.init lvm2-2.02.51/debian/clvm.init
--- lvm2-2.02.51/debian/clvm.init
+++ lvm2-2.02.51/debian/clvm.init
@@ -1,11 +1,11 @@
#!/bin/sh
#
### BEGIN INIT INFO
-# Provides: lvm cluster locking daemon
-# Required-Start: lvm2 cman
-# Required-Stop: lvm2 cman
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Provides: clvm
+# Required-Start: $remote_fs lvm2 cman
+# Required-Stop: $remote_fs lvm2 cman
+# Default-Start: S
+# Default-Stop: 0 6
# Short-Description: start and stop the lvm cluster locking daemon
### END INIT INFO
#
only in patch2:
unchanged:
--- lvm2-2.02.51.orig/debian/clvm.postinst
+++ lvm2-2.02.51/debian/clvm.postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+# Those using dependency based boot sequencing with sysv-rc and installing
+# clvm version 2.02.51-4 and earlier would have incorrect runlevel symlinks.
+# Recover from this.
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "2.02.51-4" \
+ && [ -f /etc/rc2.d/[SK][0-9][0-9]clvm ] && [ ! -f /etc/rcS.d/S[0-9][0-9]clvm ]
+then
+ update-rc.d -f clvm remove
+fi
+
+#DEBHELPER#
Happy hacking,
--
Petter Reinholdtsen
More information about the pkg-lvm-maintainers
mailing list