[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] Debian: Move FANCYTTY=0 setting from preseed_create to preseed_base



This makes the console logs of any HVM or debian-installer created
easier to parse by omitting the escape characters.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Osstest/Debian.pm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 464f190..76171c0 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -807,6 +807,14 @@ in-target apt-get install -y sysvinit-core
 END
     }
 
+    preseed_hook_command($ho, 'late_command', $sfx, <<END);
+#!/bin/sh
+set -ex
+
+echo FANCYTTY=0 >> /target/etc/lsb-base-logging.sh
+END
+
+
     preseed_ssh($ho, $sfx);
 
     preseed_hook_command($ho, 'late_command', '', <<'END');
@@ -1058,13 +1066,6 @@ ls -l /dev/sd*
 true
 END
 
-    preseed_hook_command($ho, 'late_command', $sfx, <<END);
-#!/bin/sh
-set -ex
-
-echo FANCYTTY=0 >> /target/etc/lsb-base-logging.sh
-END
-
     my $dtbs = "$d_i/dtbs.tar.gz";
     if (!stat $dtbs) {
         $!==&ENOENT or die "dtbs $!";
-- 
2.6.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.