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:
parent
24cbe874d6
commit
5bfe944907
|
@ -13,7 +13,7 @@ with lib;
|
|||
|
||||
unitConfig = {
|
||||
DefaultDependencies = false;
|
||||
ConditionVirtualization = "!systemd-nspawn";
|
||||
ConditionPathExists = "/dev/rtc";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Reference in a new issue