xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH 3/3] ts-host-install/Debian: improvements for standalone mode.
Date: Fri, 11 Jan 2013 11:24:40 +0000	[thread overview]
Message-ID: <1357903480-21357-3-git-send-email-ian.campbell@citrix.com> (raw)
In-Reply-To: <1357903462.20328.35.camel@zakaz.uk.xensource.com>

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_<testbox>_Ether
    MAC address of the box <testbox>.  Only needed if you want
    to use the osstest host and Xen installer.
 
+HostProp_<testbox>_NoSerial
+   Set to 1 if <testbox> has no serial, system will use VGA console
+   instead.
+
+HostProp_<testbox>_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

      parent reply	other threads:[~2013-01-11 11:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 11:24 [PATCH 0/3] osstest: minor fixlets for standalone mode Ian Campbell
2013-01-11 11:24 ` [PATCH 1/3] ts-debian-install: Set a default root password Ian Campbell
2013-01-11 11:24 ` [PATCH 2/3] OssTest: Debian: Wheezy compatible preseed Ian Campbell
2013-01-11 11:24 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357903480-21357-3-git-send-email-ian.campbell@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).