From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH RFC OSSTEST 06/19] ts-host-install: Refactor code to construct a Linux console= for a host Date: Fri, 10 Oct 2014 13:02:21 +0100 Message-ID: <1412942554-752-6-git-send-email-ian.campbell@citrix.com> References: <1412942404.27111.12.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1412942404.27111.12.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 And reuse it in when writing the u-boot script for initial boot. This was previously hardcoded to ttyAMA which matches the production host DB for the current set of hosts which use this script. Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 4 +++- Osstest/TestSupport.pm | 10 ++++++++++ ts-host-install | 6 +++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index ab09abb..29dec3b 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -660,6 +660,8 @@ END if ( $ho->{Flags}{'need-uboot-bootscr'} ) { my $root=target_guest_lv_name($ho,"root"); + my $console = get_host_native_linux_console($ho); + my $consolecmd = "console=$console" unless $console eq "NONE"; preseed_hook_command($ho, 'late_command', $sfx, <\$r/boot/boot <