aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-26 13:21:54 -0500
committerMike Frysinger <vapier@gentoo.org>2011-11-26 13:21:54 -0500
commitd8e739e19af48c2dab884d61ecd22e8a54e23883 (patch)
tree9dad66f2c3d2a6bd4f481d595c5777b688210fb6
parent3baca9a35c4f6e2bd910d5bc54c0008c13b0501a (diff)
urandom: move seed from /var/run to /var/lib
We want the seed to be preserved across reboots, so move it to /var/lib. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--conf.d/urandom2
-rw-r--r--init.d/urandom.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf.d/urandom b/conf.d/urandom
index fbaf4e81..f721a249 100644
--- a/conf.d/urandom
+++ b/conf.d/urandom
@@ -2,4 +2,4 @@
# (say for crypt swap), so you will need to customize this
# behavior. If you have /var on a separate partition, then
# make sure this path lives on your root device somewhere.
-urandom_seed="/var/run/random-seed"
+urandom_seed="/var/lib/misc/random-seed"
diff --git a/init.d/urandom.in b/init.d/urandom.in
index 7fe5e590..bc48066b 100644
--- a/init.d/urandom.in
+++ b/init.d/urandom.in
@@ -2,7 +2,7 @@
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
-: ${urandom_seed:=${URANDOM_SEED:-/var/run/random-seed}}
+: ${urandom_seed:=${URANDOM_SEED:-/var/lib/misc/random-seed}}
description="Initializes the random number generator."
depend()