Skip to content

Instantly share code, notes, and snippets.

@worldofpeace
Created February 23, 2020 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldofpeace/320d9f3d76affc158726a0fe034566ed to your computer and use it in GitHub Desktop.
Save worldofpeace/320d9f3d76affc158726a0fe034566ed to your computer and use it in GitHub Desktop.
diff --git a/nixos/modules/security/rngd.nix b/nixos/modules/security/rngd.nix
index 5566c53897d..d89f20221dd 100644
--- a/nixos/modules/security/rngd.nix
+++ b/nixos/modules/security/rngd.nix
@@ -37,6 +37,12 @@ in
after = [ "dev-random.device" ];
+ conflicts = [ "shutdown.target" ];
+ before = [
+ "sysinit.target"
+ "shutdown.target"
+ ];
+
description = "Hardware RNG Entropy Gatherer Daemon";
# rngd may have to start early to avoid entropy starvation during boot with encrypted swap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment