Bug 121704 - post-install script syntax error prevents loading
Summary: post-install script syntax error prevents loading
Keywords:
Status: CLOSED DUPLICATE of bug 121892
Alias: None
Product: Fedora
Classification: Fedora
Component: policy
Version: rawhide
Hardware: noarch
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
: 121685 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-26 13:37 UTC by Derek Poon
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:02:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Derek Poon 2004-04-26 13:37:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040422

Description of problem:
The policy.spec file contains a syntax error -- notice the double pair
of ampersands in the second command:

%post sources
if [ -x /usr/bin/selinuxenabled ]; then
   make -W /etc/security/selinux/src/policy/users \
        -C /etc/security/selinux/src/policy > /dev/null 2>&1
   /usr/bin/selinuxenabled &&  && [ -e /selinux/policyvers ] && \
      make -C /etc/security/selinux/src/policy load
fi
exit 0

Version-Release number of selected component (if applicable):
policy-sources-1.11.2-18

How reproducible:
Always

Steps to Reproduce:
rpm -Uvh policy-sources-1.11.2-18.noarch.rpm

Actual Results:  /var/tmp/rpm-tmp.93704: line 4: syntax error near
unexpected token `&&'
/var/tmp/rpm-tmp.93704: line 4: `   /usr/bin/selinuxenabled &&  && [
-e selinux/policyvers ] && \'
error: %post(policy-sources-1.11.2-18) scriptlet failed, exit status 2

Expected Results:  No error should have occurred.

Additional info:

The following changelog entry seems to be relevant:

* Thu Apr 22 2004 Dan Walsh <dwalsh> 1.11.2-18
- [...]
- Check if /selinux is mounted before reload

Comment 1 Aleksey Nogin 2004-04-26 21:31:39 UTC
*** Bug 121685 has been marked as a duplicate of this bug. ***

Comment 2 Ignacio Vazquez 2004-04-27 14:36:28 UTC
The bug is on line 126 of the spec file:

   /usr/bin/selinuxenabled &&  && [ -e /selinux/policyvers ] && \


Comment 3 Daniel Walsh 2004-04-28 19:27:26 UTC
Fixed in policy-1.11.2-20


Comment 4 Alexandre Oliva 2004-05-02 02:06:34 UTC

*** This bug has been marked as a duplicate of 121892 ***

Comment 5 Red Hat Bugzilla 2006-02-21 19:02:46 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.