From: Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= Date: Mon, 18 Aug 2014 14:42:29 +0000 Subject: Re: device symlinks being removed Message-Id: <20140818144229.GD29977@in.waw.pl> List-Id: References: <53EE9BCD.5090101@stormcloud9.net> In-Reply-To: <53EE9BCD.5090101@stormcloud9.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, Aug 15, 2014 at 11:07:05PM -0400, Patrick Hemmer wrote: > > My udev rule looks like this: > > > > SUBSYSTEM=3D"block", SUBSYSTEMS=3D"xen", ATTR{capability}=3D"*", > > ACTION=3D"add", PROGRAM=3D"/ec2disks -A %k", SYMLINK+=3D"%c" > Finally figured out it. For some reason, another event was sometimes > being triggered on the device. My udev rule was matching only 'add' > events, and this other event was apparently something else. So my rule > wouldn't match, and the device would lose the symlinks. >=20 > Just removed the ACTION=3D"add" from the udev rule and all appears well. Yep. For a similar case see http://cgit.freedesktop.org/systemd/systemd/com= mit/?id=E0d856dd48. Zbyszek