From eac6a0dd475e22512cc24bb3b8fe018c70cf7bc8 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Mon, 5 Jun 2017 18:44:18 +0200 Subject: [PATCH] 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 (cherry picked from commit e69086645d3411a2ed781609b670eb5f16ac4810) Conflicts: ceph.spec.in: No _epoch_prefix in kraken. --- ceph.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph.spec.in b/ceph.spec.in index fa719e4fba0cd..d2dc82634eeef 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -654,6 +654,7 @@ Summary: SELinux support for Ceph MON, OSD and MDS Group: System Environment/Base Requires: ceph-base = %{epoch}:%{version}-%{release} Requires: policycoreutils, libselinux-utils +Requires(post): ceph-base = %{epoch}:%{version}-%{release} Requires(post): selinux-policy-base >= %{_selinux_policy_version}, policycoreutils, gawk Requires(postun): policycoreutils %description selinux -- 2.39.5