From 4b90cc9fa289716ca9681e313f50cf469fcc1113 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Wed, 26 Mar 2014 14:00:11 +0100 Subject: during install do not create /var/lib/random-seed if /dev/urandom does not exist --- initscripts.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'initscripts.spec') diff --git a/initscripts.spec b/initscripts.spec index 6c657a09..31523860 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -106,8 +106,8 @@ chmod 600 /var/log/btmp /sbin/chkconfig --add network /sbin/chkconfig --add netconsole -if [ ! -f /var/lib/random-seed ] ; then - dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null +if [ ! -f /var/lib/random-seed -a -e /dev/urandom ] ; then + dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=4096 2>/dev/null chmod 600 /var/lib/random-seed fi -- cgit v1.2.1