mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
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'.
This commit is contained in:
parent
8faaf8d7cc
commit
4a32f58aa1
1 changed files with 4 additions and 1 deletions
|
@ -529,7 +529,10 @@ (define (urandom-seed-shepherd-service _)
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue