Bug 441941
Summary: | installation error: error initializing udevd socket | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sebastian Vahl <fedora> |
Component: | udev | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-04-23 10:17:52 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
Sebastian Vahl
2008-04-10 19:52:28 UTC
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets According to the scriptlet documentation, %post $1 should equal 1 during installation and 2 during upgrade. I also noticed that there is a logic bug, it shouldn't be using chkconfig --del during %post. I'm guessing this was a copy & paste problem? %preun if [ "$1" = 0 -a -f %{_initrddir}/udev ]; then Furthermore the %preun seems to make no sense. When will this ever be true? In any case it appears to be harmless at least. The following patch should fix this and result in proper behavior. Some review please? --- udev.spec 5 Apr 2008 16:29:16 -0000 1.242 +++ udev.spec 11 Apr 2008 02:43:47 -0000 @@ -269,19 +269,14 @@ fi exit 0 %post -if [ "$1" -ge "1" -a -x /sbin/pidof ]; then +if [ "$1" -gt "1" -a -x /sbin/pidof ]; then pid=$(/sbin/pidof -c udevd) if [ -n "$pid" ]; then kill $pid + /sbin/udevd -d fi fi - -if [ "$1" -ge "1" ]; then - /sbin/udevd -d - /sbin/chkconfig --del udev-post >/dev/null 2>&1 || : -fi - /sbin/chkconfig --add udev-post exit 0 I've grabbed you patch, created a local RPM and build a new live image with it. The installation of udev is now silent. But I haven't had the time yes to do some further tests (not even start the image). |