From: Ian Campbell Subject: [PATCH 05/10] ts-host-install: Support for different console devices Date: Wed, 4 Sep 2013 17:58:18 +0100 Message-ID: <1378313903-10539-5-git-send-email-ian.campbell@citrix.com> References: <1378313870.17510.172.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378313870.17510.172.camel@kazak.uk.xensource.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 Subsumes NoSerial host property as well. --- README | 5 +++-- ts-host-install | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README b/README index d92afea..4bf3b26 100644 --- a/README +++ b/README @@ -88,8 +88,9 @@ HostProp__Ether MAC address of the box . Only needed if you want to use the osstest host and Xen installer. -HostProp__NoSerial - Set to 1 if has no serial, system will use VGA console +HostProp__SerialConsole + Set to the serial console device on the platform. Defaults to + ttyS0. If set to "NONE" then the system will use VGA console instead. HostProp__DIFrontend diff --git a/ts-host-install b/ts-host-install index b7257d7..b974365 100755 --- a/ts-host-install +++ b/ts-host-install @@ -177,8 +177,10 @@ END get_host_property($ho, "install-append $ho->{Suite}", ''); push @installcmdline, qw(--); - push @installcmdline, "console=ttyS0,$c{Baud}n8" - unless get_host_property($ho, "NoSerial", "0"); + + my $console = get_host_property($ho, "SerialConsole", "ttyS0"); + push @installcmdline, "console=$console,$c{Baud}n8" + unless $console eq "NONE"; my $installcmdline= join ' ', @installcmdline; -- 1.7.10.4