From: Ian Campbell Date: Wed, 29 Oct 2014 10:41:27 +0000 (+0000) Subject: ts-host-install: Refactor code to construct a Linux console= for a host X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cd903c27995039b1f1f540e25eaba88ec0cd43a3;p=people%2Fdariof%2Fosstest.git ts-host-install: Refactor code to construct a Linux console= for a host 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 Acked-by: Ian Jackson --- 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 <