[systemd-devel] Question about a udev rule

Robert Milasan rmilasan at suse.com
Sun Dec 8 10:14:17 PST 2013


I've got this small rule which seems to not work at all:

ACTION!="add|change", GOTO="end_root_symlink"
SUBSYSTEM!="block", GOTO="end_root_symlink"
ENV{DEVTYPE}!="partition", GOTO="end_root_symlink"

IMPORT{program}="/usr/bin/udevadm info --export --export-prefix=ROOT_
--device-id-of-file=/" ENV{MAJOR}!="0", ENV{MAJOR}=="$env{ROOT_MAJOR}",
ENV{MINOR}=="$env{ROOT_MINOR}", SYMLINK+="root"

LABEL="end_root_symlink"

Can anyone tell me what I'm doing wrong?

-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: rmilasan at suse.com
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A


More information about the systemd-devel mailing list