Le jeudi 06 mai 2010 à 14:21 +0200, Steffen Grunewald a écrit :
> On Thu, May 06, 2010 at 01:45:48PM +0200, Mathieu Alorent wrote:
> > Le jeudi 06 mai 2010 à 11:35 +0200, Mathieu Alorent a écrit :
> > > "Cannot determine size of /dev/cciss/c1d0 - scheme unknown"
> >
> > Found it !
> >
> > here is the patch... Hope there is no side effects.
> >
> > --- usr/share/fai/setup-storage/Init.pm.orig 2010-05-06
> > 13:37:32.000000000 +0200
> > +++ usr/share/fai/setup-storage/Init.pm 2010-05-06 13:36:19.000000000
> > +0200
> > @@ -182,7 +182,7 @@
> > return (1, "/dev/$1", $2);
> > }
> > elsif ($dev =~
> > -
> > m{^/dev/(cciss/c\dd\d|ida/c\dd\d|rd/c\dd\d|ataraid/d\d|etherd/e\d+\.\d+)p(\d+)?$})
> > +
> > m{^/dev/(cciss/c\dd\d|ida/c\dd\d|rd/c\dd\d|ataraid/d\d|etherd/e\d+\.\d+)p?(\d+)?$})
> > {
> > defined($2) or return (1, "/dev/$1", -1);
> > return (1, "/dev/$1", $2);
>
> I suppose the line should read
>
> > +
> > m{^/dev/(cciss/c\dd\d|ida/c\dd\d|rd/c\dd\d|ataraid/d\d|etherd/e\d+\.\d+)(p\d+)?$})
>
> Seems to make more sense?
>
> Steffen
> Are you sure ? $2 will then contains "p1" or "p2"... instead of just the number !
smime.p7s
Description: S/MIME cryptographic signature
