From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Wed, 06 Oct 2004 16:59:54 +0000 Subject: Re: Problems using scsi_id with udevstart Message-Id: <20041006165954.GA8268@beaverton.ibm.com> List-Id: References: <1097019226.2300.38.camel@bluto.andrew> In-Reply-To: <1097019226.2300.38.camel@bluto.andrew> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Oct 06, 2004 at 10:26:13AM -0600, Andrew Patterson wrote: > Note: here is the error you get when scsi_id is run without any > parameters: > > # /sbin/scsi_id > -s must be specified For the udev PROGRAM rules with no arguments, it is effectively invoked like this (well there are other environment values but scsi_id only cares about DEVPATH): DEVPATH=/block/sda /sbin/scsi_id block Since udev does not have a % whatever for the DEVPATH, you can't pass it in the rule file, that is this rule would not work for anything but sda: PROGRAM="/sbin/scsi_id -s /block/sda" You would need a new udev %-something, like: PROGRAM="/sbin/scsi_id -s %p" -- Patrick Mansfield ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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