Package:  policycoreutils
Version:  2.0.49-6
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-runlevels incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d script.  The list of runlevels in the init.d
header do not match the arguments used by update-rc.d.  The header say
it should start in rcS.d, while update-rc.d uses the defaults
argument, saying it should start in runlevels 2-5.  Also, it uses
files in /usr/ and should depend on $remote_fs instead of $local_fs.

<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 >.

This patch should solve the issue.  Without it, the init.d will have
incorrect start symlinks in rcS.d, and might start before /usr/ is
available.

diff -ur policycoreutils-2.0.65/restorecond/restorecond.init 
policycoreutils-2.0.65-pere/restorecond/restorecond.init
--- policycoreutils-2.0.65/restorecond/restorecond.init 2009-08-16 
21:41:08.000000000 +0200
+++ policycoreutils-2.0.65-pere/restorecond/restorecond.init    2009-08-16 
21:41:57.000000000 +0200
@@ -1,9 +1,9 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          restorecond
-# Required-Start:    $local_fs $syslog
-# Required-Stop:     $local_fs $syslog
-# Default-Start:     S 2 3 4 5
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Start the Daemon used to maintain path file context
 # Description:       uses inotify to look for creation of new files

Happy hacking,
--
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to