1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

Don't run hwclock if /dev/rtc doesn't exist

E.g. on EC2 instances.

Backport: 14.04
This commit is contained in:
Eelco Dolstra 2014-05-05 16:23:38 +02:00
parent 24cbe874d6
commit 5bfe944907

View file

@ -13,7 +13,7 @@ with lib;
unitConfig = {
DefaultDependencies = false;
ConditionVirtualization = "!systemd-nspawn";
ConditionPathExists = "/dev/rtc";
};
serviceConfig = {