Bug 693161 - systemd %post runs /sbin/restorecon but package doesn't depend on policycoreutils
Summary: systemd %post runs /sbin/restorecon but package doesn't depend on policycoreu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-03 09:10 UTC by Albert Strasheim
Modified: 2011-04-09 02:13 UTC (History)
7 users (show)

Fixed In Version: systemd-24-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-09 02:13:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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