Bug 120478

Summary: %post scriptlet for policy-1.10.1-4 package failed
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: pgraner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-12 15:39:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2004-04-09 05:32:57 UTC
Description of problem:

I got the following when installing 'policy' while selinux
was turned off:

   8:policy                 warning:
/etc/security/selinux/file_contexts created as
/etc/security/selinux/file_contexts.rpmnew
########################################### [ 12%]
warning: /etc/security/selinux/policy.16 created as
/etc/security/selinux/policy.16.rpmnew
error: %post(policy-1.10.1-4) scriptlet failed, exit status 1

As this script looks like follows:

[ -x /usr/bin/selinuxenabled ] && /usr/bin/selinuxenabled && 
/usr/sbin/load_policy /etc/security/selinux/policy.`cat
/selinux/policyvers`

I am somewhat at loss here.  A non-escaped EOL on the first line?
It would seem that trailing '&&' would be enough but maybe
in a context that executes this makes a difference?

Version-Release number of selected component (if applicable):
policy-1.10.1-4

Comment 1 Daniel Walsh 2004-04-12 15:39:24 UTC
policy-1.11.1-1

Fixes this.  Basically if the script does not execute anything then it
exits with an error.  So I had to add an exit 0 after this line.

Dan