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

Robert Connolly robert at linuxfromscratch.org
Fri Jan 13 17:39:57 PST 2006


I put it in /etc because some people have /var on a different partition (like 
me). In /etc the random-seed file is always available. Slackware does the 
same thing for the same reason.

robert

On January 13, 2006 01:55 pm, Tobias Stoeckmann wrote:
> 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