From: Boris Ranto Date: Mon, 5 Jun 2017 16:44:18 +0000 (+0200) Subject: selinux: Install ceph-base before ceph-selinux X-Git-Tag: v12.1.0~272^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e69086645d3411a2ed781609b670eb5f16ac4810;p=ceph-ci.git selinux: Install ceph-base before ceph-selinux 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index a34ece03c8c..9fc84f44b41 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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