Package:  kexec-tools
Version:  20070330-2
Tags:     patch
User:     [EMAIL PROTECTED]
Usertags: incorrect-dependency

Now that insserv support reverse dependencies for init.d scripts, I
intend to drop the dependency from umountroot to kexec, and leave it
to kexec-tools to do a reverse depend instead.  It will make
umountroot less complex and let kexec-tools control its shutdown
sequence location completely.  Here is a patch to implement it.

While reviewing the LSB headers of the scripts, I noticed that the
optional headers should-stop and should-start are used even when
empty.  This is not needed, so I recommend dropping them.

diff -ur kexec-tools-20070330.orig/debian/kexec.init.d 
kexec-tools-20070330/debian/kexec.init.d
--- kexec-tools-20070330.orig/debian/kexec.init.d       2008-01-04 
01:20:57.000000000 +0100
+++ kexec-tools-20070330/debian/kexec.init.d    2008-01-04 01:22:13.000000000 
+0100
@@ -3,8 +3,7 @@
 # Provides:            kexec
 # Required-Start:
 # Required-Stop:       reboot
-# Should-Start:
-# Should-Stop:
+# X-Stop-After:         umountroot
 # Default-Start:
 # Default-Stop:                6
 # Short-Description: Execute the kexec -e command to reboot system
diff -ur kexec-tools-20070330.orig/debian/kexec-load.init.d 
kexec-tools-20070330/debian/kexec-load.init.d
--- kexec-tools-20070330.orig/debian/kexec-load.init.d  2008-01-04 
01:20:57.000000000 +0100
+++ kexec-tools-20070330/debian/kexec-load.init.d       2008-01-04 
01:22:16.000000000 +0100
@@ -3,8 +3,6 @@
 # Provides:            kexec-load
 # Required-Start:
 # Required-Stop:       $local_fs kexec
-# Should-Start:
-# Should-Stop:
 # Default-Start:
 # Default-Stop:                6
 # Short-Description: Load kernel image with kexec

Happy hacking,
-- 
Petter Reinholdtsen



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

Reply via email to