Bug 174722 - Install of package fails due to scriptlet failure
Summary: Install of package fails due to scriptlet failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 174428
TreeView+ depends on / blocked
 
Reported: 2005-12-01 17:48 UTC by Chris Lumens
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 2.0.7-1
Clone Of:
Environment:
Last Closed: 2006-03-21 01:45:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Lumens 2005-12-01 17:48:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051103 Fedora/1.5-0.5.0.rc1 Firefox/1.5

Description of problem:
Installing selinux-policy-targeted from anaconda due to a preinstall scriptlet failure.  The first step in the pre scriptlet is to source /etc/selinux/config, which fails because this file is created by either the postinstall scriptlet or by anaconda after package installation has occurred.

The following lines are seen in /root/install.log after installation is complete:

/var/tmp/rpm-tmp.36853: line 2: /etc/selinux/config: No such file or directory.
error: %pre(selinux-policy-targeted-2.0.6-2.noarch) scriptlet failed, exit status 1
error: install %pre scriptlet failed (2), skipping selinux-policy-targeted-2.0.6-2.

The fix is to protect the source with a test for if the file exists.

Version-Release number of selected component (if applicable):
2.0.6-2

How reproducible:
Always

Steps to Reproduce:
1.  Do a fresh install.
2.  Examine /root/install.log.
3.  See that there are failures and also that the package has not been installed.

Additional info:

Comment 1 Daniel Walsh 2005-12-01 18:14:07 UTC
Fixed in  selinux-policy-*-2.0.7-1



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