View previous topic :: View next topic |
Author |
Message |
lostboy1 n00b
Joined: 03 Sep 2003 Posts: 12 Location: Chicago, IL
|
Posted: Wed Jul 05, 2006 12:57 pm Post subject: udev-094 cracks down on rule syntax [SOLVED] |
|
|
I upgraded from udev-090-r1 to udev-094 this weekend, and when I tried to attach my usb hard drive today the custom rules I wrote no longer worked. When I checked syslog, I found this:
Code: | Jul 5 07:23:00 disco-stu udevd[924]: add_to_rules: invalid SYSFS operation
Jul 5 07:23:00 disco-stu udevd[924]: add_to_rules: invalid rule '/etc/udev/rules.d/10-brett.rules:1'
Jul 5 07:23:00 disco-stu udevd[924]: add_to_rules: invalid SYSFS operation
Jul 5 07:23:00 disco-stu udevd[924]: add_to_rules: invalid rule '/etc/udev/rules.d/10-brett.rules:2' |
Here are the rules I was using:
Code: | BUS="scsi", SYSFS{vendor}="Maxtor ", NAME="maxtor%n"
BUS="scsi", SYSFS{vendor}="SanDisk ", SYSFS{model}=="Cruzer Mini ", NAME="cruzer%n" |
It appears that this newer version of udev no longer likes the trailing white space in the SYSFS value. Once I removed the trailing white space (and changed = to == for BUS and SYSFS{}) the rules started working again (I did change the = to == first, and the rules still failed):
Code: | BUS=="scsi", SYSFS{vendor}=="Maxtor", NAME="maxtor%n"
BUS=="scsi", SYSFS{vendor}=="SanDisk", SYSFS{model}=="Cruzer Mini", NAME="cruzer%n" |
Just thought I'd share my experience as the fix wasn't really apparent and a quick search on google and the forums here didn't turn up any hints. _________________ AMD Athlon64 3400+ -- Asus K8V SE Deluxe
HP9000 819/K200 |
|
Back to top |
|
|
brouha n00b
Joined: 06 Jul 2006 Posts: 3
|
Posted: Thu Jul 06, 2006 1:58 am Post subject: |
|
|
Thanks for that. I had something similar after an update but it appeared on bootup and the files and rules concerned were slightly different:
Code: | udevd[1061]: add_to_rules: invalid rule '/etc/udev/rules.d/30-svgalib.rules:1'
udevd[1061]: add_to_rules: invalid rule '/etc/udev/rules.d/90-hal.rules:5' |
where the lines concerned were:
Code: | KERNEL="svga*", NAME="%k", MODE="0660", GROUP="video"
SUBSYSTEM=="block",ACTION="remove", RUN+="/usr/libexec/hal-unmount.sh" |
Followed your advice and changed them to:
Code: | KERNEL=="svga*", NAME="%k", MODE="0660", GROUP="video"
SUBSYSTEM=="block",ACTION=="remove", RUN+="/usr/libexec/hal-unmount.sh" |
Worked fine |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|