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.campb...@citrix.com>
Acked-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
v3: Honour rootdelay when booting dom 0.
---
 Osstest/Debian.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 0b047df..276457e 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -135,11 +135,13 @@ sub setupboot_uboot ($$$) {
        my $initrd = "initrd.img-$want_kernver";
 
        my $root= target_guest_lv_name($ho,"root");
+       my $rootdelay=get_host_property($ho, "rootdelay");
 
        my @xenkopt;
        push @xenkopt, $xenkopt;
        push @xenkopt, "ro";
        push @xenkopt, "root=$root";
+       push @xenkopt, "rootdelay=$rootdelay" if $rootdelay;
 
        $xenkopt = join ' ', @xenkopt;
 
@@ -701,9 +703,11 @@ END
        my @bootargs;
 
        my $root=target_guest_lv_name($ho,"root");
+       my $rootdelay=get_host_property($ho, "rootdelay");
        my $console=get_host_native_linux_console($ho);
 
        push @bootargs, "root=$root";
+       push @bootargs, "rootdelay=$rootdelay" if $rootdelay;
        push @bootargs, "console=$console" unless $console eq "NONE";
 
        my $bootargs = join ' ', @bootargs;
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to