Udev Regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good Morning List,

 

Does anyone know how complicated of a regular _expression_ can be utilized in a udev rule?

 

For instance I have a system with a lot of drives (sda through z aren’t enough) and I want to write a rule that will match the physical block devices for one rule and then a separate rule for partitions.

 

Something like this, however the rules don’t seem to fire except when I remove the ‘+’ from the rules:

ACTION="" SUBSYSTEM==”block”, KERNEL==”sd[a-z]+”, SYMLINK+=”some_device_%k”

ACTION="" SUBSYSTEM==”block”, KERNEL==”sd[a-z]+[0-9]+”, SYMLINK+=”some_device_%k”

 

I am running systemd version 219-67.

 

Kind Regards,

Kevin

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux