From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 06 Oct 2004 16:44:22 +0000 Subject: Re: Problems using scsi_id with udevstart Message-Id: <20041006164422.GA10803@vrfy.org> 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:20:56AM -0600, Andrew Patterson wrote: > On Wed, 2004-10-06 at 01:55 +0200, Kay Sievers wrote: > > On Tue, Oct 05, 2004 at 05:33:46PM -0600, Andrew Patterson wrote: > > > Hi, > > > > > > I added the following udev rule to make human-readable device file names > > > for my SCSI disks: > > > > > > BUS="scsi", KERNEL="sd*", PROGRAM="scsi_id", NAME="scsi_disks/%c-%b", SYMLINK="%k" > > ^^^^^^^ > > > > You need an absolute path here to properly call the binary. > > Correct, too much cut an pasting. It still doesn't work even with the > correct path. Here is the output using /sbin/scsi_id: > > namedev_name_device: sysfs_device->bus='scsi' > wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi' > namedev_name_device: class_dev->name = 'sda' > namedev_name_device: udev->kernel_name = 'sda' > namedev_name_device: kernel_number='' > namedev_name_device: process rule > match_rule: check for BUS dev->bus='scsi' sysfs_device->bus='scsi' > match_rule: BUS matches > match_rule: check for KERNEL dev->kernel='sd*' class_dev->name='sda' > match_rule: KERNEL matches > match_rule: check PROGRAM > execute_program: path = /sbin/scsi_id > > execute_program: result is '' > execute_program: exec program status 0x100 > match_rule: PROGRAM returned nonzero > match_rule: try parent sysfs device Where is the "path = /sbin/scsi_id" line coming from? Other lines are missing. Did you change anything in the code. It should look more like this: udev[25565]: match_rule: KERNEL matches udev[25565]: match_rule: check PROGRAM udev[25565]: execute_program: execute '/bin/false' with main argument udev[25565]: execute_program: result is '' udev[25565]: execute_program: exec program status 0x100 udev[25565]: match_rule: PROGRAM returned nonzero udev[25565]: match_rule: try parent sysfs device And please try to run scsi_id on the commandline if it works there. Kay ------------------------------------------------------- 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