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.
Addresses-Debian-Bug: 487196
Signed-off-by: LaMont Jones <lamont@debian.org>
### BEGIN INIT INFO
# Provides: hwclock
-# Required-Start: mountdevsubfs
+# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
install -m 755 debian/hwclock.sh debian/util-linux/etc/init.d/hwclock.sh; \
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-Start:/s/.local_fs/mountdevsubfs/' \
-e '/Required-Stop:/s/.local_fs/umountroot/' \
-e '/Default-Start:/a# Default-Stop:' -e '/Default-Stop:/d' \
debian/util-linux/etc/init.d/hwclockfirst.sh; \