From: Ian Campbell Subject: [PATCH OSSTEST v5 11/24] distros: Support pvgrub for Wheezy too. Date: Wed, 15 Apr 2015 11:35:36 +0100 Message-ID: <1429094149-6849-11-git-send-email-ian.campbell@citrix.com> References: <1429094135.15516.187.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429094135.15516.187.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 | 44 +++++++++++++++++++++++++++++++++++++++++++- make-distros-flight | 4 ++-- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 53e77e2..4dcea26 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -691,6 +691,17 @@ END d-i clock-setup/ntp-server string $ntpserver END + # deb http://ftp.debian.org/debian/ wheezy-backports main + $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($ho, $suite, $sfx, $extra_packages, %xopts); $preseed_file.= (<