setup-storage: Cannot determine size of /dev/cciss/c1d0 - scheme unknown
Mathieu Alorent
malorent at echo.fr
Thu May 6 14:42:00 CEST 2010
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 !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4892 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100506/573f30cd/attachment.bin
More information about the linux-fai
mailing list