Bug#603036: lvm2: fails to install due to incorrect dependencies in init.d LSB header

Petter Reinholdtsen pere at hungry.com
Mon Dec 13 20:35:36 UTC 2010


tags 603036 + patch
thanks

There are two ways to fix this issue.  One is to change the package
dependencies of lvm2 to depend on udev, the other is to change the
init.d script dependency on udev from a hard to a soft dependency.

Hard dependencies are required when the package is installed, while
soft dependencies only define ordering if the two packages in question
are both installed.

I believe switching to a soft dependency is the correct solution, as
the package relations receive more though in Debian these days than
the init.d script relations.

Here is a patch to implement this change.

--- debian/lvm2.init.orig       2010-12-13 21:30:44.000000000 +0100
+++ debian/lvm2.init    2010-12-13 21:30:58.000000000 +0100
@@ -1,9 +1,9 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          lvm2 lvm
-# Required-Start:    mountdevsubfs udev
+# Required-Start:    mountdevsubfs
 # Required-Stop:
-# Should-Start:      mdadm-raid cryptdisks-early multipath-tools-boot
+# Should-Start:      udev mdadm-raid cryptdisks-early multipath-tools-boot
 # Should-Stop:       umountroot mdadm-raid
 # X-Start-Before:    checkfs mountall
 # X-Stop-After:      umountfs

Given that udev is installed on most Debian systems, it can be argued
that this issue is not release critical.  I expect incorrect udev
relationship to be RC for kfreebsd but given that lvm2 do not work on
kfreebsd, it is purely ac itademic in this case.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the pkg-lvm-maintainers mailing list