Fix the logic to skip SELinux labeling of block devices
Previously the unless clause was cusing the SELinux label to happen for block devices too. Closes-Bug: 1617310 Change-Id: I4ab32e5f796609cf2f985e989c6dc04d0eb37190
This commit is contained in:
parent
4e36628a02
commit
309ef4819b
|
@ -118,7 +118,7 @@ ceph-disk list | grep -E ' *${data}1? .*ceph data, (prepared|active)' ||
|
|||
path => ['/usr/sbin', '/sbin', '/usr/bin', '/bin'],
|
||||
require => [Package[$::ceph::params::pkg_policycoreutils],Exec[$ceph_prepare]],
|
||||
before => Exec[$ceph_activate],
|
||||
unless => "test ! -b ${data} && (semanage fcontext -l | grep ${data})",
|
||||
unless => "test -b ${data} || (semanage fcontext -l | grep ${data})",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue