Bug 687943 - udev rules silently ignore RUN+= action at boot time.
Summary: udev rules silently ignore RUN+= action at boot time.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: 14
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-15 18:58 UTC by Joe
Modified: 2011-03-16 10:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-16 10:48:46 UTC
Type: ---


Attachments (Terms of Use)

Description Joe 2011-03-15 18:58:33 UTC
Description of problem: udev RUN+= command is silently ignored when rule is applied at boot but operates normally when system is running. This is shown when connecting USB hardware.  I have tried an Arduino Diecimila and a WinTV USB tuner.


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


How reproducible: Very, it seems independent of USB hardware connected


Steps to Reproduce: Using a WinTV USB tuner for example
1. Create udev rule ' KERNEL=="tuner0", SYMLINK+="wintv", RUN+="/bin/touch /tmp/wintv.log" '
2. plug in WinTV USB
3. Reboot with WinTV USB plugged in
  
Actual results:
After reboot the symlink /dev/wintv is present linking to /dev/video0 but the empty file /tmp/wintv.log is not present


Expected results:
The symlink /dev/wintv should be present and also the empty file /tmp/wintv.log should be present

Additional info:
The udev rule functions correctly if the USB device is plugged in with the system running.  This has been tried on Fedora 12 i686, Fedora 14 i686, Fedora 14 x86_64.   

This has also been tested and found to work correctly from boot on Ubuntu 10.04 and 10.10.

Comment 1 Harald Hoyer 2011-03-16 10:48:46 UTC
/tmp is not yet writeable at boot time...
Try:
KERNEL=="tuner0", SYMLINK+="wintv", RUN+="/bin/touch /dev/wintv.log" 

and check /dev/wintv.log


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