Skip to contentSkip to conversation

Debian: Move FANCYTTY=0 setting from preseed_create to preseed_base

PATCH In review Ian Campbell 2 participants 2 messages Nov 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Osstest/Debian.pm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
Osstest/Debian.pm +8 -7
index 464f190..76171c0 100644
@@ -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 $!";
Signature · 1 line
2.6.1
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] Debian: Move FANCYTTY=0 setting from preseed_create to preseed_base"):

Quoted 2 lines

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