Package: kexec-tools
Version: 1.101-kdump10-2
Tags: patch

The dependency and runlevel information provided in the LSB headers in
the init.d scripts in kexec-tools is slightly wrong.  Here is a patch
to fix it.  The kexec-tools init.d scripts should only run in runlevel
6, so the default-start values should be rmeoved.  Also, the
dependencies for the stop scripts are the wrong way around for
init.d/kexec, it should stop before reboot, not before kexec-load.
Also, kexec-load should stop before kexec, so this should be reflected
in the required-stop for that script.  The should-start and
should-stop headers can probably be removed, as they are empty.

diff -ur kexec-tools-1.101-kdump10-orig/debian/kexec.init.d 
kexec-tools-1.101-kdump10/debian/kexec.init.d
--- kexec-tools-1.101-kdump10-orig/debian/kexec.init.d  2007-06-19 
09:24:00.000000000 +0100
+++ kexec-tools-1.101-kdump10/debian/kexec.init.d       2007-06-19 
09:25:58.000000000 +0100
@@ -1,11 +1,11 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:            kexec
-# Required-Start:      kexec-load
-# Required-Stop:       kexec-load
+# Required-Start:
+# Required-Stop:       reboot
 # Should-Start:
 # Should-Stop:
-# Default-Start:       0 1 2 3 4 5
+# Default-Start:
 # Default-Stop:                6
 # Short-Description: Execute the kexec -e command to reboot system
 # Description:
diff -ur kexec-tools-1.101-kdump10-orig/debian/kexec-load.init.d 
kexec-tools-1.101-kdump10/debian/kexec-load.init.d
--- kexec-tools-1.101-kdump10-orig/debian/kexec-load.init.d     2007-06-19 
09:24:00.000000000 +0100
+++ kexec-tools-1.101-kdump10/debian/kexec-load.init.d  2007-06-19 
09:26:12.000000000 +0100
@@ -1,11 +1,11 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:            kexec-load
-# Required-Start:      $local_fs
-# Required-Stop:       $local_fs
+# Required-Start:
+# Required-Stop:       $local_fs kexec
 # Should-Start:
 # Should-Stop:
-# Default-Start:       0 1 2 3 4 5
+# Default-Start:
 # Default-Stop:                6
 # Short-Description: Load kernel image with kexec
 # Description:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to