From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 12 Apr 2007 12:30:45 +0000 Subject: Re: Excluding some device types from persistent-net (xen, s390) Message-Id: <1176381045.3788.19.camel@lov.localdomain> List-Id: References: <200704120944.10520.zzam@gentoo.org> In-Reply-To: <200704120944.10520.zzam@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Thu, 2007-04-12 at 12:33 +0200, Matthias Schwarzott wrote: > On Donnerstag, 12. April 2007, you wrote: > > On 4/12/07, Matthias Schwarzott wrote: > > > I have a change to persistent-net behaviour, to exclude xen-devices, = and > > > s390-devices. > > > > It's not needed, or does not work for xen and s390? >=20 > xen creates random macs per default I think. And s390 does create macs on= =20 > login or similar? Perhaps someone really using a s390 could comment on th= is. >=20 >=20 > > > > > Can that rule be formatted better? > > > > With the current logic, only one SUBSYSTEMS-key (same for most other > > keys) is supported per rule. > > (I have a patch pending, that removes the limitation and just creates > > a big linear match/action from of the rules, without the limitation on > > the count of keys, but that patch is not finished now.) > > > > > Does that syntax work: SUBSYSTEMS!=3D"xen|ccwgroup" > > > I saw the ACTION!=3D"add|change" commit, but does that apply to the > > > SUBSYSTEMS list also? > > > > It should work for all match-keys, yes. > > >=20 > But that means for now I have to use > SUBSYSTEMS=3D"xen", GOTO=3D"persistent_net_end" > SUBSYSTEMS=3D"ccwgroup", GOTO=3D"persistent_net_end" That should work. > or does=20 > SUBSYSTEMS=3D"xen|ccwgroup", GOTO=3D"persistent_net_end" > or That should work too, only the !=3D has the weird behavior. > ...., SUBSYSTEMS!=3D"xen|ccwgroup", ... > work, as this IS just one SUBSYSTEMS per line. This will work with the next udev, today: !=3D"a|b" means: (!a) || (!b) which is pretty useless. :) Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel