summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2018-03-21 21:27:27 -0500
committerEvgeny Vereshchagin <evvers@ya.ru>2018-03-22 05:27:27 +0300
commit1d0b60c48119b28280d534249368a002b1a8d6c9 (patch)
treeceefd0f643bd33fb9ff20746e9db975854c52ece /units
parente9cbef7dc96faaf01a68d064b9b584651a5fbc2d (diff)
downloadsystemd-1d0b60c48119b28280d534249368a002b1a8d6c9.tar.gz
units: disable systemd-time-sync-wait inside containers (#8537)
Fixes #8535
Diffstat (limited to 'units')
-rw-r--r--units/systemd-time-wait-sync.service.in2
1 files changed, 2 insertions, 0 deletions
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