Hi,

Upon further inspection, it seems that the LSB dependencies of hwclock.sh are
wrong for start order too.

hwclockfirst should start before checkroot, followed by hwclock as far as I
understand. This is not represented in the current dependency information,
hwlockfirst and hwclock both only require mountdevsubfs to have started, thus
they are started at same sequence in dependency based boot.

Attached is updated patch to correct the boot order for both startup and
shutdown so that:

1) hwclock is started after checkroot and not at same seq as hwclockfirst
2) hwclockfirst is not stopped

Thanks, Kel.
---
diff -Nrup --exclude='*.8' --exclude='*~' util-linux-2.13.1.1/debian/hwclock.sh 
util-linux-2.13.1.1.lsb/debian/hwclock.sh
--- util-linux-2.13.1.1/debian/hwclock.sh       2008-08-23 05:33:40.000000000 
+1000
+++ util-linux-2.13.1.1.lsb/debian/hwclock.sh   2008-08-23 05:25:54.000000000 
+1000
@@ -18,7 +18,7 @@
 
 ### BEGIN INIT INFO
 # Provides:          hwclock
-# Required-Start:    mountdevsubfs
+# Required-Start:    checkroot
 # Required-Stop:     $local_fs
 # Default-Start:     S
 # Default-Stop:      0 6
diff -Nrup --exclude='*.8' --exclude='*~' util-linux-2.13.1.1/debian/rules 
util-linux-2.13.1.1.lsb/debian/rules
--- util-linux-2.13.1.1/debian/rules    2008-08-23 05:33:40.000000000 +1000
+++ util-linux-2.13.1.1.lsb/debian/rules        2008-08-23 05:45:18.000000000 
+1000
@@ -115,6 +115,8 @@ endif
            install -m 755 debian/hwclock.sh 
debian/util-linux/etc/init.d/hwclockfirst.sh; \
            sed -i -e '/^FIRST=/s/no/yes/' -e '/Provides:/s/ck/ckfirst/' \
                -e '/Required-Stop:/s/.local_fs/umountroot/' \
+               -e '/Required-Start:/s/checkroot/mountdevsubfs/' \
+               -e '/Default-Start:/a# Default-Stop:' -e '/Default-Stop:/d' \
                debian/util-linux/etc/init.d/hwclockfirst.sh; \
        fi
 ifneq ($(DISTRO),Debian)
---



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

Reply via email to