From: Ian Jackson Subject: [OSSTEST PATCH 6/9] Debian.pm: Slightly refactor preseed_base Date: Tue, 17 Feb 2015 17:50:28 +0000 Message-ID: <1424195431-1493-7-git-send-email-ian.jackson@eu.citrix.com> References: <1424195431-1493-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YNmUp-0004xn-CZ for xen-devel@lists.xenproject.org; Tue, 17 Feb 2015 18:03:43 +0000 In-Reply-To: <1424195431-1493-1-git-send-email-ian.jackson@eu.citrix.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: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Arrange for preseed_base to accumulate its result in a variable. This is going to make it easier to add entries which are determined programatically. No functional change. Signed-off-by: Ian Jackson --- Osstest/Debian.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index a044f8f..315d25c 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -506,7 +506,7 @@ sub di_installcmdline_core ($$;@) { sub preseed_base ($$$;@) { my ($ho,$suite,$extra_packages,%xopts) = @_; - return <<"END"; + my $preseed = <<"END"; d-i mirror/suite string $suite d-i debian-installer/locale string en_GB @@ -572,10 +572,15 @@ d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bi $xopts{ExtraPreseed} -### END OF DEBIAN PRESEED BASE +END + + $preseed .= <<"END"; +### END OF DEBIAN PRESEED BASE END -} + + return $preseed; +} sub preseed_create ($$;@) { my ($ho, $sfx, %xopts) = @_; -- 1.7.10.4