retitle 520607 hwclock.sh should Require mountnfs for start
tag 520607 + patch
thanks

Acutally, hwclock.sh should rather require $remote_fs, because it
exist to set the clock after /usr/ is available when /etc/localtime is
a symlink to /usr/share/zoneinfo/. /usr/ is guaranteed to be available
after $remote_fs even when NFS-mounted.  Because it can be executed in
parallel with mountnfs-bootclean.sh, I suggest making it depend on
mountnfs instead of $remote_fs.

Here is a patch to implement that change.

diff -ur util-linux-2.15.1~rc1/debian/hwclock.sh 
util-linux-2.15.1~rc1.pere/debian/hwclock.sh
--- util-linux-2.15.1~rc1/debian/hwclock.sh      2009-07-15 11:21:57.000000000 
+0200
+++ util-linux-2.15.1~rc1.pere/debian/hwclock.sh 2009-07-15 11:18:01.000000000 
+0200
@@ -18,7 +18,7 @@
 
 ### BEGIN INIT INFO
 # Provides:          hwclock
-# Required-Start:    mountdevsubfs
+# Required-Start:    mountnfs
 # Required-Stop:     $local_fs
 # Default-Start:     S
 # Default-Stop:      0 6
diff -ur util-linux-2.15.1~rc1/debian/rules 
util-linux-2.15.1~rc1.pere/debian/rules
--- util-linux-2.15.1~rc1/debian/rules      2009-07-15 11:21:57.000000000 +0200
+++ util-linux-2.15.1~rc1.pere/debian/rules 2009-07-15 11:20:19.000000000 +0200
@@ -106,6 +106,7 @@
       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/mountnfs/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; \

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