/etc/random-seed issue in blfs-bootscripts-20051121-hlfs-1.patch

Tobias Stoeckmann tobias at bugol.de
Fri Jan 13 10:55:36 PST 2006


Hi,

The file /etc/random-seed won't  ever be used again after creation so
I think this should be /var/cache/random-seed:

--- blfs-bootscripts-20051121-hlfs-1.patch~	Fri Jan 13 19:53:19 2006
+++ blfs-bootscripts-20051121-hlfs-1.patch	Fri Jan 13 19:53:33 2006
@@ -123,7 +123,7 @@
  		boot_mesg "Saving random seed..."
 -		/bin/dd if=/dev/urandom of=/var/tmp/random-seed \
 -			count=1 &>/dev/null
-+		/bin/install -m0600 -o0 /dev/null /etc/random-seed
++		/bin/install -m0600 -o0 /dev/null /var/cache/random-seed
 +		if [ -r /proc/sys/kernel/random/poolsize ]; then
 +			dd if=/dev/urandom of=/var/cache/random-seed count=1 \
 +				bs=$(cat /proc/sys/kernel/random/poolsize) 2> /dev/null


Tobias Stoeckmann



More information about the hlfs-dev mailing list