Only disable TPM access by rngd when tcsd is enabled.

This commit is contained in:
Alexander Kjeldaas 2014-04-22 13:41:22 +02:00
parent 4cca346d21
commit baf4faeddc
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ with lib;
description = "Hardware RNG Entropy Gatherer Daemon";
serviceConfig.ExecStart = "${pkgs.rng_tools}/sbin/rngd -f -v --no-tpm=1";
serviceConfig.ExecStart = "${pkgs.rng_tools}/sbin/rngd -f -v" +
(if config.services.tcsd.enable then " --no-tpm=1" else "");
restartTriggers = [ pkgs.rng_tools ];
};