linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem parsing %s in udev rules
@ 2004-10-06 23:33 Andrew Patterson
  2004-10-06 23:50 ` Kay Sievers
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Andrew Patterson @ 2004-10-06 23:33 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Udev seems to be chopping off anything seen in a rule after a %s.  For
example, if I have the following rule:

BUS="scsi", KERNEL="sd*", PROGRAM="/sbin/scsi_id", NAME="%k",
SYMLINK="scsi_disks/some-proceeding-stuff-%s{model}-some-following-
stuff"

Everything after the %s{model} is ignored.

Furthermore, everything in model following whitespace is ignored as
well.  I.e, if model contains "HP 34.7G", the resulting device file
created is /dev/scsi_disks/some-proceeding-stuff-HP.

I used the following command to run this test:

# DEVPATH=/block/sda ACTION=add ./udev block

I also get the same behavior when using udevstart (patched to fix
parameter passing problems).

Environment:

OS: debian unstable
Arch: IA-64
udev version: 032
scsi_id version: 0.5

Andrew

-- 
Andrew Patterson                
Hewlett-Packard

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-10-15 18:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 23:33 Problem parsing %s in udev rules Andrew Patterson
2004-10-06 23:50 ` Kay Sievers
2004-10-07  0:23 ` Andrew Patterson
2004-10-07  0:30 ` Kay Sievers
2004-10-12 23:04 ` Andrew Patterson
2004-10-12 23:58 ` Greg KH
2004-10-13 23:13 ` Andrew Patterson
2004-10-13 23:56 ` Greg KH
2004-10-14 20:05 ` Andrew Patterson
2004-10-15 18:45 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).