Bug#468697: lvm2: Problem with LSB header in init.d script
Petter Reinholdtsen
pere at hungry.com
Fri Feb 29 23:28:04 UTC 2008
Package: lvm2
Version: 2.02.33-1
Severity: important
Tags: patch
User: initscripts-ng-devel at lists.alioth.debian.org
Usertags: incorrect-dependency
I just checked the shutdown order in unstable on a machine with lvm
and dependency based boot sequencing enabled, and discovered that the
lvm2 script was inserted into the wrong location for runlevels 0 and
6. After giving it a close check, I discovered a typo in the LSB
header of lvm2. Sorry I did not discover this earlier. Two colons
are missing, making the reverse dependencies fail to be discovered by
insserv.
Here is a patch to solve it. I added capital A in X-Stop-After for
consistency with the other headers.
diff -ur lvm2-2.02.33.orig/debian/lvm2.init lvm2-2.02.33/debian/lvm2.init
--- lvm2-2.02.33.orig/debian/lvm2.init 2008-03-01 00:23:43.000000000 +0100
+++ lvm2-2.02.33/debian/lvm2.init 2008-03-01 00:25:26.000000000 +0100
@@ -5,8 +5,8 @@
# Required-Stop:
# Should-Start: udev devfsd raid2 mdadm cryptdisks-early
# Should-Stop: reboot halt umountroot
-# X-Start-Before checkfs mountall
-# X-Stop-after umountfs
+# X-Start-Before: checkfs mountall
+# X-Stop-After: umountfs
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO
More information about the pkg-lvm-maintainers
mailing list