[Utnubu-maintainers] Bug#458626: dmraid: Please add LSB formatted dependency info in init.d script

Petter Reinholdtsen pere at hungry.com
Wed Jan 2 08:56:57 UTC 2008


Package:  dmraid
Version:  1.0.0.rc13-1
Tags:     patch
User:     initscripts-ng-devel at lists.alioth.debian.org
Usertags: missing-dependency

To be able to check boot script order, and also to be able to start
boot scripts in parallel, it is important to know the dependencies of
the various boot scripts.  The Linux Software Base specifies a init.d
header file format useful for this purpose, and adding such header to
the init.d script would make it possible for me to use this
information to check the current sequence and to speed up the debian
boot.

I am working on a system to update the boot sequence based on these
dependencies, and would like see this as the default in Lenny.
Because of this, it is nice if the dependencies was updated quickly.

<URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html>
documents the LSB header format.  Some debian notes are available from
<URL:http://wiki.debian.org/LSBInitScripts>.

Here is a patch to document the dependencies.  I hope this is correct.

diff -ur dmraid-1.0.0.rc13.orig/debian/dmraid.init dmraid-1.0.0.rc13/debian/dmraid.init
--- dmraid-1.0.0.rc13.orig/debian/dmraid.init   2008-01-02 09:48:14.000000000 +0100
+++ dmraid-1.0.0.rc13/debian/dmraid.init        2008-01-02 09:53:07.000000000 +0100
@@ -1,4 +1,13 @@
 #!/bin/bash
+### BEGIN INIT INFO
+# Provides:          dmraid
+# Required-Start:    mountkernfs udev
+# Required-Stop:     umountroot
+# X-Start-Before:    checkroot mdadm-raid lvm
+# X-Stop-After:      umountfs mdadm-raid lvm
+# Default-Start:     S
+# Default-Stop:      0 6
+### END INIT INFO

 # try to load module in case that hasn't been done yet
 modprobe dm-mod >/dev/null 2>&1

Happy hacking,
--
Petter Reinholdtsen





More information about the Utnubu-maintainers mailing list