As far as I can see, ACTION (“add”), SUBSYSTEM (“block”), ENV{ID_TYPE} (“disk”) and ENV{ID_FS_LABEL} (“Backup”) all match. The script called by this action runs flawlessly when started from console. This used to run with SuSE 11.x, but I am not sure if I changed something different apart from the upgrade when I switched to SuSE 12.1.
I am by no way an expert here, but what I miss in your listing almost at the end in the DEVLINKS line is the creation of a* /dev/disk/by-label/* entry. Is that because the line is broken off? It looks a bit like that. Or is it because your label is not there?
I don’t see anything wrong (syntax-wise) with your udev rule, but I do have a question: Does your script also do the mounting of this usb storage device? (Remember usb devices are not necessarily automatically mounted, although the desktop environment may be configured to do so).
Currently, the desktop is configured accordingly (I might change that in future). I also replaced the application with a simple script which just creates a syslog entry to see if the application is started at all. Is there any way to let udevd report which rules matched and what actions are intended to be executed ?
Finally, debugging worked - and I got the problem. I put the rule to “49-wumpus.rules” which was simply too early - I moved it to “99-wumpus.rules” and voila ! Threre we go.
Thanx a lot for help !
Good hint, albeit with systemd just a “kill” was no enough - udevd got respawned immediately. Instead, I had to do…
Thanks for the info concerning the behaviour of systemd. I’m not yet up to speed with it, as I’m still with openSUSE 11.4. I’m sure this will be helpful to others who come searching.
Finally, debugging worked - and I got the problem. I put the rule to “49-wumpus.rules” which was simply too early - I moved it to “99-wumpus.rules” and voila ! Threre we go.
Thanx a lot for help !
Ah, yes, another rule was being being matched and processed later in the chain. Great result and glad to have been of help.