Don't run hwclock if /dev/rtc doesn't exist
E.g. on EC2 instances. Backport: 14.04
This commit is contained in:
@@ -13,7 +13,7 @@ with lib;
|
|||||||
|
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
DefaultDependencies = false;
|
DefaultDependencies = false;
|
||||||
ConditionVirtualization = "!systemd-nspawn";
|
ConditionPathExists = "/dev/rtc";
|
||||||
};
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user