From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v5 07/14] Osstest/Debian: support adding a rootdelay property to bootargs Date: Thu, 22 Jan 2015 11:05:00 +0000 Message-ID: <1421924707-25607-7-git-send-email-ian.campbell@citrix.com> References: <1421924192.23842.9.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421924192.23842.9.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 Acked-by: Ian Jackson --- v5: Rebased over refactoring. v3: Honour rootdelay when booting dom 0. --- Osstest/Debian.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 1f7a4f0..2ea1a7e 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -119,10 +119,12 @@ sub uboot_common_kernel_bootargs ($) 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; } -- 2.1.4