From: Ian Campbell Subject: [PATCH OSSTEST v3 14/19] distros: Support pvgrub for Wheezy too. Date: Mon, 1 Dec 2014 12:57:31 +0000 Message-ID: <1417438656-15451-14-git-send-email-ian.campbell@citrix.com> References: <1417438571.29138.22.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1417438571.29138.22.camel@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: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This requires us to install pv-grub-menu from backports, which we do using a late_command. Signed-off-by: Ian Campbell --- v3: - Remove spurious () from <<(END) (and the prexisting "" too) - Remove $xopts{EnableBackports} and automatically handle the need to add backports in preseed_base. - Install via late_command not apt-setup, since the former has issues, hence subject drops "attempt to..." --- Osstest/Debian.pm | 46 ++++++++++++++++++++++++++++++++++++++++++++-- make-distros-flight | 4 ++-- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index a15768f..dc01be5 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -491,7 +491,7 @@ sub preseed_base ($$;@) { $extra_packages ||= ''; $xopts{ExtraPreseed} ||= ''; - return <<"END"; + my $preseed= <> /target/etc/apt/sources.list +in-target apt-get update +in-target apt-get install -y -t wheezy-backports pv-grub-menu +END + } else { + $extra_packages = "pv-grub-menu"; + } + } my $preseed_file= preseed_base($suite, $extra_packages, %xopts); $preseed_file.= (<