Red Hat Bugzilla – Bug 174722
Install of package fails due to scriptlet failure
Last modified: 2007-11-30 17:11:18 EST
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):
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.
Fixed in selinux-policy-*-2.0.7-1