Bug 693161

Summary: systemd %post runs /sbin/restorecon but package doesn't depend on policycoreutils
Product: [Fedora] Fedora Reporter: Albert Strasheim <fullung>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: fullung, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-24-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-09 02:13:06 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 Albert Strasheim 2011-04-03 09:10:59 UTC
Description of problem:

I'm doing a yum --installroot to setup a chroot for testing systemd-nspawn.

There is an error when rpm runs systemd's %post script because systemd doesn't depend on policycoreutils but runs /sbin/restorecon.

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

systemd-22-1.fc15.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Install systemd package
  
Actual results:

Installing     : systemd-22-1.fc15.x86_64
/var/tmp/rpm-tmp.oRMlcS: line 3: /sbin/restorecon: No such file or directory

Expected results:

Should work.

Additional info:

I also see:

/bin/grep: /etc/pam.d/system-auth-ac: No such file or directory

which is apparently because authconfig hasn't been run.

Comment 1 Michal Schmidt 2011-04-03 09:53:39 UTC
Yeah:

# Should move to some other place eventually
/bin/mkdir -p -m 755 /run || :
/sbin/restorecon /run || :

This hack should be removed because filesystem-2.4.39-1.fc15 (in updates-testing currently) already contains /run.


> /bin/grep: /etc/pam.d/system-auth-ac: No such file or directory
> which is apparently because authconfig hasn't been run.

This should be harmless. It could use a redirection to /dev/null.

Comment 2 Fedora Update System 2011-04-06 20:15:17 UTC
systemd-24-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/systemd-24-1.fc15

Comment 3 Fedora Update System 2011-04-07 02:21:29 UTC
Package systemd-24-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-24-1.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/systemd-24-1.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-09 02:12:46 UTC
systemd-24-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.