]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpm: fix upgrades when RBD is disabled in a new version
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 19 Mar 2019 15:59:36 +0000 (15:59 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 20 Mar 2019 17:05:23 +0000 (17:05 +0000)
We previously had to disable RBD on 32-bit platforms since Ceph has
dropped all support for 32-bit. Unfortunately anyone with the RPM
libvirt-daemon-driver-storage-rbd installed on 32-bit now has a
broken upgrade path.

To fix this we must make libvirt-daemon-driver-storage-core
have an Obsoletes: libvirt-daemon-driver-storage-rbd < $VER-$REL

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 1497cad3d2f3d7f13a39c2c630615997dfbef9f1..79f3d31d19a61b8d679a3ee5029c28db7e70e599 100644 (file)
@@ -550,6 +550,9 @@ Requires: util-linux
 # From QEMU RPMs
 Requires: /usr/bin/qemu-img
 %endif
+%if !%{with_storage_rbd}
+Obsoletes: libvirt-daemon-driver-storage-rbd < %{version}-%{release}
+%endif
 
 %description daemon-driver-storage-core
 The storage driver plugin for the libvirtd daemon, providing