[packages/systemd/systemd-219] Enable systemd-timesyncd in virtual machines

jajcus jajcus at pld-linux.org
Fri Jul 10 09:53:37 CEST 2015


commit 4fb1ed28f8defd300327cf8491e975acd4c8fa6b
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Jul 10 09:51:32 2015 +0200

    Enable systemd-timesyncd in virtual machines
    
    Enable systemd-timesyncd in non-container virtualization, as on upstream
    master.

 systemd.spec         |  2 ++
 timesync_in_vm.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/systemd.spec b/systemd.spec
index 4b23e7c..4b7703a 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -68,6 +68,7 @@ Patch18:	optional-tmp-on-tmpfs.patch
 Patch19:	uids_gids.patch
 Patch20:	sysv-symlinks-warning.patch
 Patch21:	no-configurable-runlevels.patch
+Patch22:	timesync_in_vm.patch
 URL:		http://www.freedesktop.org/wiki/Software/systemd
 BuildRequires:	acl-devel
 BuildRequires:	attr-devel
@@ -696,6 +697,7 @@ Uzupełnianie parametrów w zsh dla poleceń udev.
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
+%patch22 -p1
 cp -p %{SOURCE2} src/systemd_booted.c
 
 %build
diff --git a/timesync_in_vm.patch b/timesync_in_vm.patch
new file mode 100644
index 0000000..f70aa16
--- /dev/null
+++ b/timesync_in_vm.patch
@@ -0,0 +1,12 @@
+diff -dur -x '*~' systemd-219.orig/units/systemd-timesyncd.service.in systemd-219/units/systemd-timesyncd.service.in
+--- systemd-219.orig/units/systemd-timesyncd.service.in	2015-02-11 18:28:06.000000000 +0100
++++ systemd-219/units/systemd-timesyncd.service.in	2015-07-10 09:45:32.000000000 +0200
+@@ -9,7 +9,7 @@
+ Description=Network Time Synchronization
+ Documentation=man:systemd-timesyncd.service(8)
+ ConditionCapability=CAP_SYS_TIME
+-ConditionVirtualization=no
++ConditionVirtualization=!container
+ DefaultDependencies=no
+ RequiresMountsFor=/var/lib/systemd/clock
+ After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/c8c1c22df944e571576f17e2edfed795e6bf0c96



More information about the pld-cvs-commit mailing list