aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-12-21 10:20:50 +0100
committerLudovic Courtès <ludo@gnu.org>2017-12-22 08:56:50 +0100
commit4a32f58aa135e97eedf23f725586f9651d726e73 (patch)
tree0f85b0adce62c2b305af7ef0a7070b23e3233cf3 /gnu/services
parent8faaf8d7cc466c8caa55905798c9ff9aaad9a1c9 (diff)
downloadpatches-4a32f58aa135e97eedf23f725586f9651d726e73.tar
patches-4a32f58aa135e97eedf23f725586f9651d726e73.tar.gz
services: urandom-seed: Depend on udev.
Suggested by Leo Famulari <leo@famulari.name>. * gnu/services/base.scm (urandom-seed-shepherd-service): Add 'udev' to 'requirement'.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/base.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index acc5c33f58..7fc8f6aa7e 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -529,7 +529,10 @@ in KNOWN-MOUNT-POINTS when it is stopped."
(list (shepherd-service
(documentation "Preserve entropy across reboots for /dev/urandom.")
(provision '(urandom-seed))
- (requirement '(file-systems))
+
+ ;; Depend on udev so that /dev/hwrng is available.
+ (requirement '(file-systems udev))
+
(start #~(lambda _
;; On boot, write random seed into /dev/urandom.
(when (file-exists? #$%random-seed-file)