arndale appears to be quite slow (and asynchronous) at finding it's
scsi controller. rootdelay=3 seems to do the trick.
For the dom0 case this involved refactoring the existing provision of
the commandline to be less open-coded in the boot script here doc.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
my ($ho) = @_;
my $root= target_guest_lv_name($ho,"root");
+ my $rootdelay= get_host_property($ho, "rootdelay");
my @bootargs;
push @bootargs, "ro";
push @bootargs, "root=$root";
+ push @bootargs, "rootdelay=$rootdelay" if $rootdelay;
return @bootargs;
}