1 |
commit: d8e739e19af48c2dab884d61ecd22e8a54e23883 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 18:21:54 2011 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 18:21:54 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=d8e739e1 |
7 |
|
8 |
urandom: move seed from /var/run to /var/lib |
9 |
|
10 |
We want the seed to be preserved across reboots, so move it to /var/lib. |
11 |
|
12 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
13 |
|
14 |
--- |
15 |
conf.d/urandom | 2 +- |
16 |
init.d/urandom.in | 2 +- |
17 |
2 files changed, 2 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/conf.d/urandom b/conf.d/urandom |
20 |
index fbaf4e8..f721a24 100644 |
21 |
--- a/conf.d/urandom |
22 |
+++ b/conf.d/urandom |
23 |
@@ -2,4 +2,4 @@ |
24 |
# (say for crypt swap), so you will need to customize this |
25 |
# behavior. If you have /var on a separate partition, then |
26 |
# make sure this path lives on your root device somewhere. |
27 |
-urandom_seed="/var/run/random-seed" |
28 |
+urandom_seed="/var/lib/misc/random-seed" |
29 |
|
30 |
diff --git a/init.d/urandom.in b/init.d/urandom.in |
31 |
index 7fe5e59..bc48066 100644 |
32 |
--- a/init.d/urandom.in |
33 |
+++ b/init.d/urandom.in |
34 |
@@ -2,7 +2,7 @@ |
35 |
# Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name> |
36 |
# Released under the 2-clause BSD license. |
37 |
|
38 |
-: ${urandom_seed:=${URANDOM_SEED:-/var/run/random-seed}} |
39 |
+: ${urandom_seed:=${URANDOM_SEED:-/var/lib/misc/random-seed}} |
40 |
description="Initializes the random number generator." |
41 |
|
42 |
depend() |