[Pkg-sysvinit-commits] r1936 - in sysvinit/trunk/debian: . src/initscripts/etc/init.d

Petter Reinholdtsen pere at alioth.debian.org
Wed Jun 30 23:41:03 UTC 2010


Author: pere
Date: 2010-06-30 23:41:02 +0000 (Wed, 30 Jun 2010)
New Revision: 1936

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/src/initscripts/etc/init.d/urandom
Log:
Avoid /usr/bin/find in init.d/urandom to be able to run it before
/usr/ is mounted (Closes: #587665).

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2010-06-30 12:07:49 UTC (rev 1935)
+++ sysvinit/trunk/debian/changelog	2010-06-30 23:41:02 UTC (rev 1936)
@@ -1,3 +1,10 @@
+sysvinit (2.88dsf-11) UNRELASED; urgency=low
+
+  * Avoid /usr/bin/find in init.d/urandom to be able to run it before
+    /usr/ is mounted (Closes: #587665).
+
+ -- Petter Reinholdtsen <pere at debian.org>  Thu, 01 Jul 2010 01:40:44 +0200
+
 sysvinit (2.88dsf-10) unstable; urgency=low
 
   * Change init.d/urandom depend from $remote_fs to $local_fs.  As far

Modified: sysvinit/trunk/debian/src/initscripts/etc/init.d/urandom
===================================================================
--- sysvinit/trunk/debian/src/initscripts/etc/init.d/urandom	2010-06-30 12:07:49 UTC (rev 1935)
+++ sysvinit/trunk/debian/src/initscripts/etc/init.d/urandom	2010-06-30 23:41:02 UTC (rev 1936)
@@ -36,7 +36,7 @@
 	if [ -f "$SAVEDFILE" ]
 	then
 		# Handle locally increased pool size
-		SAVEDSIZE="$(find "$SAVEDFILE" -printf "%s")"
+		SAVEDSIZE="$(ls -s --block-size=1 "$SAVEDFILE" | cut -d' ' -f1)
 		if [ "$SAVEDSIZE" -gt "$POOLSIZE" ]
 		then
 			[ -w /proc/sys/kernel/random/poolsize ] && echo $POOLSIZE > /proc/sys/kernel/random/poolsize




More information about the Pkg-sysvinit-commits mailing list