]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt.spec.in: require systemd-container on >= f24
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Jul 2016 14:57:39 +0000 (15:57 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Jul 2016 16:13:32 +0000 (17:13 +0100)
The systemd-machined tools libvirt uses were split into a
systemd-container RPM. Without depending on this, libvirt
may silently fallback to the non-systemd cgroup impl which
is not desirable.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit ffc49e579c14b1d3f24af8d004ded6e3a0e8900f)

libvirt.spec.in

index 106351c40a973926d96b0db3f68cf902691beb1d..dfcb0d37365fedbd0ea5da04a88c5ca2a881c70f 100644 (file)
@@ -618,6 +618,9 @@ Requires: gzip
 Requires: bzip2
 Requires: lzop
 Requires: xz
+%if 0%{?fedora} >= 24
+Requires: systemd-container
+%endif
 
 %description daemon-driver-qemu
 The qemu driver plugin for the libvirtd daemon, providing
@@ -633,6 +636,9 @@ Group: Development/Libraries
 Requires: libvirt-daemon = %{version}-%{release}
 # There really is a hard cross-driver dependency here
 Requires: libvirt-daemon-driver-network = %{version}-%{release}
+%if 0%{?fedora} >= 24
+Requires: systemd-container
+%endif
 
 %description daemon-driver-lxc
 The LXC driver plugin for the libvirtd daemon, providing