Re: [systemd-devel] Question about a udev rule

2013-12-09 Thread Kay Sievers
On Mon, Dec 9, 2013 at 8:08 AM, Hannes Reinecke wrote: > On 12/08/2013 07:14 PM, Robert Milasan wrote: > 1) udev rules deal with single events only. So all information for > the current event is directly available (set in environment > variables etc), and there is no need to call 'udevadm info'

Re: [systemd-devel] Question about a udev rule

2013-12-08 Thread Hannes Reinecke
On 12/08/2013 07:14 PM, Robert Milasan wrote: > 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

Re: [systemd-devel] Question about a udev rule

2013-12-08 Thread Robert Milasan
On Sun, 8 Dec 2013 19:30:45 +0100 "Martin Pitt" wrote: > Robert Milasan [2013-12-08 19:14 +0100]: > > IMPORT{program}="/usr/bin/udevadm info --export > > --export-prefix=ROOT_ --device-id-of-file=/" ENV{MAJOR}!="0", > > ENV{MAJOR}=="$env{ROOT_MAJOR}", > ^ > > For starters

Re: [systemd-devel] Question about a udev rule

2013-12-08 Thread Robert Milasan
On Sun, 8 Dec 2013 19:30:45 +0100 "Martin Pitt" wrote: > Robert Milasan [2013-12-08 19:14 +0100]: > > IMPORT{program}="/usr/bin/udevadm info --export > > --export-prefix=ROOT_ --device-id-of-file=/" ENV{MAJOR}!="0", > > ENV{MAJOR}=="$env{ROOT_MAJOR}", > ^ > > For starters

Re: [systemd-devel] Question about a udev rule

2013-12-08 Thread Andrey Borzenkov
В Sun, 8 Dec 2013 19:14:17 +0100 Robert Milasan пишет: > 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/ud

Re: [systemd-devel] Question about a udev rule

2013-12-08 Thread Martin Pitt
Robert Milasan [2013-12-08 19:14 +0100]: > IMPORT{program}="/usr/bin/udevadm info --export --export-prefix=ROOT_ > --device-id-of-file=/" ENV{MAJOR}!="0", ENV{MAJOR}=="$env{ROOT_MAJOR}", ^ For starters you seem to be missing a comma there. -- Martin Pitt