From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 3/3] ts-host-install/Debian: improvements for standalone mode. Date: Fri, 11 Jan 2013 11:24:40 +0000 Message-ID: <1357903480-21357-3-git-send-email-ian.campbell@citrix.com> References: <1357903462.20328.35.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1357903462.20328.35.camel@zakaz.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@citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Add a per-host option to not use serial, in case the test box only has VGA. Also allow the user to configure which Debian Installer frontend to use, again useful in standalone mode (where you might actually be watching it) --- Osstest/Debian.pm | 3 ++- README | 15 ++++++++++++--- ts-host-install | 3 ++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 157f666..8df3d3b 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -281,9 +281,10 @@ sub di_installcmdline_core ($$;@) { auto=true preseed hw-detect/load_firmware=false DEBCONF_DEBUG=5 - DEBIAN_FRONTEND=text ); + my $difront = get_host_property($tho,'DIFrontend','text'); push @cl, ( + "DEBIAN_FRONTEND=$difront", "hostname=$tho->{Name}", "url=$ps_url", "netcfg/dhcp_timeout=150", diff --git a/README b/README index 5808266..418aac4 100644 --- a/README +++ b/README @@ -74,10 +74,19 @@ 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 + instead. + +HostProp__DIFrontend + Configure the frontend used by Debian installer. Default in osstest + is a very basic "text" interface but for standalone configurations, + especially on VGA, "newt" might be preferred. + DebianPreseed - Text to add to the debian-installer preseed file. Optional - but you will need to set some NTP servers here if your firewall - doesn't permit NTP to Debian's pool.ntp.org servers. + Text to add to the debian-installer preseed file. Optional + but you will need to set some NTP servers here if your firewall + doesn't permit NTP to Debian's pool.ntp.org servers. ======================================== diff --git a/ts-host-install b/ts-host-install index 6028526..f97b222 100755 --- a/ts-host-install +++ b/ts-host-install @@ -161,7 +161,8 @@ END get_host_property($ho, "install-append $ho->{Suite}", ''); push @installcmdline, qw(--); - push @installcmdline, "console=ttyS0,$c{Baud}n8"; + push @installcmdline, "console=ttyS0,$c{Baud}n8" + unless get_host_property($ho, "NoSerial", "0"); my $installcmdline= join ' ', @installcmdline; -- 1.7.10.4