From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Patterson Date: Tue, 05 Oct 2004 23:33:46 +0000 Subject: Problems using scsi_id with udevstart Message-Id: <1097019226.2300.38.camel@bluto.andrew> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-g6LKrtSe7TuFkVamvihW" List-Id: To: linux-hotplug@vger.kernel.org --=-g6LKrtSe7TuFkVamvihW Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I added the following udev rule to make human-readable device file names for my SCSI disks: BUS=3D"scsi", KERNEL=3D"sd*", PROGRAM=3D"scsi_id", NAME=3D"scsi_disks/%c-%b= ", SYMLINK=3D"%k" When I run udevstart, I get the following errors in the logfile: Oct 5 17:25:17 natasha udevstart: PROGRAM execution of 'scsi_id' failed Oct 5 17:25:17 natasha udevstart: creating device node '/dev/sdy2' Oct 5 17:25:17 natasha udevstart: PROGRAM execution of 'scsi_id' failed Oct 5 17:25:17 natasha udevstart: creating device node '/dev/sdz' scsi_id is failing because no parameters are being passed to it, and I think DEVPATH is also not being set appropriately. Here is debug output: get_sysfs_device: device 2:0:0:0 is registered with bus 'scsi' namedev_name_device: sysfs_device- >path=3D'/sys/devices/pci0000:20/0000:20:01.0/host2/2:0:0:0' namedev_name_device: sysfs_device->bus_id=3D'2:0:0:0' namedev_name_device: sysfs_device->bus=3D'scsi' wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi' namedev_name_device: class_dev->name =3D 'sda' namedev_name_device: udev->kernel_name =3D 'sda' namedev_name_device: kernel_number=3D'' namedev_name_device: process rule match_rule: check for BUS dev->bus=3D'scsi' sysfs_device->bus=3D'scsi' match_rule: BUS matches match_rule: check PROGRAM execute_program:=20 execute_program: result len 256 too short execute_program: result is ' matching Note: no args passed to scsi_id here. I can get around this by writing a script the passes the appropriate -s parameter to scsi_id, but I would hope that this sort of thing would just work. Is this sort of thing supposed to work with udevstart? Note that the Debian udev start-scripts run udevstart at boot. Some configuration details. Arch: IA-64 OS: Debian unstable Udev version: 032 scsi_id version: 0.5 Andrew --=20 Andrew Patterson =20 Hewlett-Packard --=-g6LKrtSe7TuFkVamvihW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBYy9aoKXgdXvblSgRAsKoAKDZ26JdHSpibO+/B/A1VL8ue6hW0gCaA6HL V6MhDttDH4Lkw9JsZ1psWco= =gGpA -----END PGP SIGNATURE----- --=-g6LKrtSe7TuFkVamvihW-- ------------------------------------------------------- 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