From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 12/20] Osstest/Debian: Refactor code to set bootargs in u-boot script Date: Wed, 29 Oct 2014 10:41:34 +0000 Message-ID: <1414579302-6692-12-git-send-email-ian.campbell@citrix.com> References: <1414579268.29975.13.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1414579268.29975.13.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 Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- Osstest/Debian.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 8f80eb4..3ffbc50 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -660,9 +660,15 @@ END } if ( $ho->{Flags}{'need-uboot-bootscr'} ) { + my @bootargs; + my $root=target_guest_lv_name($ho,"root"); - my $console = get_host_native_linux_console($ho); - my $consolecmd = "console=$console" unless $console eq "NONE"; + my $console=get_host_native_linux_console($ho); + + push @bootargs, "root=$root"; + push @bootargs, "console=$console" unless $console eq "NONE"; + + my $bootargs = join ' ', @bootargs; preseed_hook_command($ho, 'late_command', $sfx, <\$r/boot/boot <