Monday, February 21, 2011

udev SYMLINK does not work

It took me years until I finally forced myself to look into udev source code and find out why RUN attribute always work perfectly, but NAME, SYMLINK and MODE often fail to work properly.

The symptoms are also well described here:
http://ubuntuforums.org/showthread.php?t=1329255

I found out that if "uevent" file in sysfs directory of appropriate directory does not contain a version number, udev silently ignores the whole rule and never says anything in logs.

So, there are two possible solutions for the problem. One is to use RUN attribute only that would perform all the actions needed and the other is to fix the kernel module which creates such non-nonsensical entries.