setup-storage: Cannot determine size of /dev/cciss/c1d0 - scheme unknown

Steffen Grunewald steffen.grunewald at aei.mpg.de
Thu May 6 14:21:40 CEST 2010


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

-- 
Steffen Grunewald * MPI Grav.Phys.(AEI) * Am Mühlenberg 1, D-14476 Potsdam
Cluster Admin * http://pandora.aei.mpg.de/merlin/ * http://www.aei.mpg.de/
* e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}
No Word/PPT mails - http://www.gnu.org/philosophy/no-word-attachments.html


More information about the linux-fai mailing list