matching udev attribute keys
Hi all,
how do I know that "SerialNumber" is a valid udev key other than
the fact that it is listed in dmesg when the device is plugged in.
I cannot for the life of me get a udev rule for a device to match on
the serial number, even though the number is in the dmesg file.
I know that my rule works because I removed the SerialNumber attribute,
and matched on the KERNEL device only, which worked flawlessly.
I've notice that
sudo udevadm info --query=property --name=/dev/disk/by-label/NAME
produces
ID_SERIAL
ID_SERIAL_SHORT
etc...
none of which seem to match what I find in the rules files, e.g.
SerialNumber.
Can someone bridge the gap ?
How do I ensure that the ATTR keyword I use is something that udev will
really match on ?
Thanks,
Brian
P.S. yes I've tried using ATTRS{ID_SERIAL_SHORT}, etc..., WHICH IS FROM
udevadm info, and nothing other than the kernel device works. However
the information IS showing up in the dmesg output. ????
Reply to: