setup-storage and AOE => fails at Use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 618.

Jean Spirat jeanspirat at squirk.org
Thu Jan 29 00:11:21 CET 2009


I tried to change the file:

/usr/share/fai/setup-storage/Init.pm

i modified the regex in this part:  :

sub phys_dev {
  my ($dev) = @_;
  if ($dev =~ m{^/dev/(etherd/e\d+\.\d+)p(\d+)?$})
  {
    defined("$2") or return (1, "/dev/$1", -1);
    return (1, "/dev/$1", $2);
  }
  elsif ($dev =~ m{^/dev/(i2o/hd[a-t]|sd[a-t]{1,2}|hd[a-t]|vd[a-t])(\d+)?$})
  {
    defined($2) or return (1, "/dev/$1", -1);
    return (1, "/dev/$1", $2);
  }
  elsif ($dev =~ 
m{^/dev/(cciss/c\dd\d|ida/c\dd\d|rd/c\dd\d|ataraid/d\d)p(\d+)?$})
  {
    defined($2) or return (1, "/dev/$1", -1);
    return (1, "/dev/$1", $2);
  }
  return (0, "", -2);
}


so etherd device can be seen but it seems to not be enough (i am far 
from understanding the code i just try to make the regex work if it find 
a etherd device :)  ).


running parted on the AOE target give same results as on a /dev/sda 
target so i do not see where is the issue :(

regards,
Jean


More information about the linux-fai mailing list