From: Matthew Monaco <matthew.monaco@0x01b.net> --- rc.sysinit | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc.sysinit b/rc.sysinit index d3cda23..7b9c344 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -90,6 +90,13 @@ udevd_modprobe sysinit # Activate LVM2 groups if any activate_vgs +if [[ -f "$RANDOM_SEED" ]]; then + status "Initializing Random Seed" load_random_seed + RANDOM_SEED_LOADED=1 +else + RANDOM_SEED_LOADED=0 +fi + # Set up non-root encrypted partition mappings if [[ -f /etc/crypttab && $CS ]] && grep -q ^[^#] /etc/crypttab; then stat_busy "Unlocking encrypted volumes:" @@ -215,7 +222,7 @@ status "Activating Swap" swapon -a [[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE" -status "Initializing Random Seed" load_random_seed +(( $RANDOM_SEED_LOADED )) || status "Initializing Random Seed" load_random_seed # Remove leftover files remove_leftover -- 1.7.9.4