]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
Debian: Pass sylog server details to debian-installer
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 16 Jun 2017 10:10:44 +0000 (11:10 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 21 Jun 2017 22:32:24 +0000 (23:32 +0100)
This logs the installer output, even during a failed install.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 8ba48bfa9d8ed61b0efc8836df87045605655f09..845027a3afdbfa80b6e84373f7f6a7b4b7545441 100644 (file)
@@ -690,6 +690,11 @@ sub di_installcmdline_core ($$;@) {
         if defined $debconf_priority;
     push @cl, "rescue/enable=true" if $xopts{RescueMode};
 
+    if ($r{syslog_server}) {
+       $r{syslog_server} =~ m/:(\d+)$/ or die "$r{syslog_server} ?";
+       push @cl, "log_host=$`", "log_port=$1";
+    }
+
     return @cl;
 }