From: Peter A. Bigot Date: Thu, 22 Mar 2018 02:27:27 +0000 (-0500) Subject: units: disable systemd-time-sync-wait inside containers (#8537) X-Git-Tag: v239~497 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=1d0b60c48119b28280d534249368a002b1a8d6c9;p=systemd%2F.git units: disable systemd-time-sync-wait inside containers (#8537) Fixes #8535 --- diff --git a/units/systemd-time-wait-sync.service.in b/units/systemd-time-wait-sync.service.in index 352705d1a1..bed4177916 100644 --- a/units/systemd-time-wait-sync.service.in +++ b/units/systemd-time-wait-sync.service.in @@ -10,6 +10,8 @@ [Unit] Description=Wait Until Kernel Time Synchronized Documentation=man:systemd-time-wait-sync.service(8) +ConditionCapability=CAP_SYS_TIME +ConditionVirtualization=!container DefaultDependencies=no Before=time-sync.target shutdown.target Wants=time-sync.target