]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
selinux: Install ceph-base before ceph-selinux
authorBoris Ranto <branto@redhat.com>
Mon, 5 Jun 2017 16:44:18 +0000 (18:44 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 5 Jun 2017 16:49:06 +0000 (18:49 +0200)
We need to have ceph-base installed before ceph-selinux to use ceph-disk
in %post script. The default ordering is random and so the installation
randomly failed to relabel the files.

Fixes: http://tracker.ceph.com/issues/20184
Signed-off-by: Boris Ranto <branto@redhat.com>
ceph.spec.in

index a34ece03c8ca03c8bd8770feb0e6cc50474c4beb..9fc84f44b41e548e84a2ae033e4793a407bff0e9 100644 (file)
@@ -765,6 +765,7 @@ Group:              System/Filesystems
 %endif
 Requires:      ceph-base = %{_epoch_prefix}%{version}-%{release}
 Requires:      policycoreutils, libselinux-utils
+Requires(post):        ceph-base = %{_epoch_prefix}%{version}-%{release}
 Requires(post): selinux-policy-base >= %{_selinux_policy_version}, policycoreutils, gawk
 Requires(postun): policycoreutils
 %description selinux