[systemd-devel] Question about a udev rule

Andrey Borzenkov arvidjaar at gmail.com
Sun Dec 8 10:31:56 PST 2013


В Sun, 8 Dec 2013 19:14:17 +0100
Robert Milasan <rmilasan at suse.com> пишет:

> 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}",
                        ^ is not comma missing here?
> ENV{MINOR}=="$env{ROOT_MINOR}", SYMLINK+="root"
> 
> LABEL="end_root_symlink"
> 
> Can anyone tell me what I'm doing wrong?
> 



More information about the systemd-devel mailing list