| Summary: | udev startup error | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Levente Farkas <lfarkas> |
| Component: | udev | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED WORKSFORME | QA Contact: | qe-baseos-daemons |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-01 09:44:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Levente Farkas
2011-08-02 22:31:10 UTC
try: ACTION=="remove", SYMLINKS=="foo_ups", RUN+="/usr/libexec/foo/liebert-udev" sorry: ACTION=="remove", SYMLINK=="foo_ups", RUN+="/usr/libexec/foo/liebert-udev" it's not working while the original was working:-(
anyway it's a simple serial to usb converter so you can also try. the add line was:
ACTION=="add", KERNEL=="ttyUSB[0-9]", SYSFS{idVendor}=="058f", SYSFS{idProduct}=="9720", SYMLINK+="foo_ups", RUN+="/usr/libexec/foo/liebert-udev"
the problem is that udev don't give back the SYSFS and SYMLINK parameter in case of remove.
(In reply to comment #4) > it's not working while the original was working:-( > anyway it's a simple serial to usb converter so you can also try. the add line > was: > ACTION=="add", KERNEL=="ttyUSB[0-9]", SYSFS{idVendor}=="058f", > SYSFS{idProduct}=="9720", SYMLINK+="foo_ups", > RUN+="/usr/libexec/foo/liebert-udev" > > the problem is that udev don't give back the SYSFS and SYMLINK parameter in > case of remove. Yes, because the SYMLINK is removed, there is no more sysfs entry anymore, because the device already disappeared. try the ENV{REMOVE_CMD}:
ACTION=="add", KERNEL=="ttyUSB[0-9]", SYSFS{idVendor}=="058f",
SYSFS{idProduct}=="9720", SYMLINK+="foo_ups",
RUN+="/usr/libexec/foo/liebert-udev",
ENV{REMOVE_CMD}="/usr/libexec/foo/liebert-udev"
it's still not working:-( anyway the original problem was that the system gives an error during boot. and the original rule is working:-) but if you've any other tip we can try it... ok the exact situatuion is that your solution working on rhel-6, but not on rhel-5, but we find the solution: http://comments.gmane.org/gmane.linux.hotplug.devel/14254 after we add this line: ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" it's working on both rhel-6 and rhel-5:-) |