]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Mute semodule in postun script
authorBoris Ranto <branto@redhat.com>
Fri, 20 May 2016 06:09:42 +0000 (08:09 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 24 May 2016 09:25:07 +0000 (11:25 +0200)
Currently, we don't mute the semodule output in postun script. This
results in the following message when removing ceph-selinux package:

libsemanage.semanage_direct_remove_key: Removing last ceph module (no
other ceph module exists at another priority).

The fix is to simply mute the output of the command.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 3c104b106540fabdba43e0d04a3828d77f83e89d)

ceph.spec.in

index 233af941676c5e10d44439f654a0a17aa751595c..d8d45e793da775efd88d63d39b48a2186fffba7d 100644 (file)
@@ -1456,7 +1456,7 @@ if [ $1 -eq 0 ]; then
     cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre
 
     # Remove the module
-    /usr/sbin/semodule -n -r ceph
+    /usr/sbin/semodule -n -r ceph > /dev/null 2>&1
 
     # Reload the policy if SELinux is enabled
     if ! /usr/sbin/selinuxenabled ; then