Package: nfsbooted Version: 0.0.14 Tags: patch User: [EMAIL PROTECTED] 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. The hostname.dhcp script might be useful to split out into a separate package. A similar script is in debian-edu-config under the name update-hostname. Combining both might be a good idea. diff -ur nfsbooted-0.0.14.orig/init/hostname.dhcp nfsbooted-0.0.14/init/hostname.dhcp --- nfsbooted-0.0.14.orig/init/hostname.dhcp 2006-07-17 00:05:36.000000000 +0200 +++ nfsbooted-0.0.14/init/hostname.dhcp 2008-01-03 10:52:20.000000000 +0100 @@ -1,4 +1,15 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: hostname.dhcp +# Required-Start: $local_fs hostname +# Required-Stop: +# Should-Start: $network +# X-Start-Before: $remote_fs +# Default-Start: S +# Default-Stop: +# Short-Description: Set hostname based on current IP address +### END INIT INFO + # # Copyright (C) 2001-2004, 2006 Ola Lundqvist <[EMAIL PROTECTED]> # diff -ur nfsbooted-0.0.14.orig/init/mountfix nfsbooted-0.0.14/init/mountfix --- nfsbooted-0.0.14.orig/init/mountfix 2006-07-17 00:05:36.000000000 +0200 +++ nfsbooted-0.0.14/init/mountfix 2008-01-03 10:52:17.000000000 +0100 @@ -1,4 +1,12 @@ #! /bin/sh +### BEGIN INIT INFO +# Provides: mountfix +# Required-Start: $remote_fs +# Required-Stop: +# Should-Start: $network +# Default-Start: S +# Default-Stop: +### END INIT INFO # # Copyright (C) 2001-2004, 2006 Ola Lundqvist <[EMAIL PROTECTED]> # Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

