SCIENTIFIC-LINUX-USERS Archives

March 2010

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tim Edwards <[log in to unmask]>
Reply To:
Tim Edwards <[log in to unmask]>
Date:
Fri, 5 Mar 2010 15:27:31 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
On 05/03/10 15:16, Mark Stodola wrote:
>>   
> Tim,
> 
> I think you are confusing sysfs with environment variables.  the %E{key}
> is used for environment variables.  The serial number is a SYSFS
> attribute.  Try changing %E{serial} to %s{serial} and see if it works.
> 
> Cheers,
> Mark
> 

That didn't work unfortunately, my rules file now looks like this:
KERNEL=="sd*", SUBSYSTEMS=="scsi", SYMLINK+="disknumber-%s{serial}"

Any other ideas?

Tim

ATOM RSS1 RSS2