Daniel Lemire's blog

, 1 min read

Saner rules for udev

My favorite Linux brain teaser, udev, has changed its rule language somewhat. Previously, I had the following rule:


BUS="usb",
SYSFS{product}="Palm Handheld",
KERNEL="ttyUSB[13579]",
OWNER="lemire",
GROUP="tty",
MODE="0660",
SYMLINK="m500"

Now, you need to have


BUS=="usb",
SYSFS{product}=="Palm Handheld",
KERNEL=="ttyUSB[13579]",
OWNER="lemire",
GROUP="tty",
MODE="0660",
SYMLINK="m500"

This makes perfect sense, except that there was no error message to explain the required change. So an hour later, I learned way more than I needed about a crazy piece of software.

In general, another lesson learned is that rule languages are hard and generally unfriendly. Yes, I would throw CSS into the fold.