From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 10/15] distros: support booting Debian PV (d-i installed) guests with pvgrub. Date: Mon, 28 Apr 2014 11:41:31 +0100 Message-ID: <1398681696-2773-10-git-send-email-ian.campbell@citrix.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398681672.29700.55.camel@kazak.uk.xensource.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 the use of the pv-grub-menu package which is in Jessie onwards. (it is in wheezy-backports which is the subject of a subsequent flight). The bootloader to use is specified via a runvar {Guest}_bootloader. Adjust make-distros-flight to use pvgrub for some subset of i386 and amd64 guests to get coverage. Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 2 +- make-distros-flight | 16 ++++++++++++++++ ts-debian-di-install | 13 +++++++++++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 043ab0d..8946ab1 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -508,7 +508,7 @@ sub preseed_create_guest ($$;@) { my $suite= $xopts{Suite} || $c{DebianSuite}; - my $extra_packages; + my $extra_packages = "pv-grub-menu" if $xopts{PvMenuLst}; my $preseed_file= preseed_base($suite, $extra_packages, %xopts); $preseed_file.= (<{Guest}_arch"}; my $method= $r{"$gho->{Guest}_method"}; + my $bl= $r{"$gho->{Guest}_bootloader"}; + target_cmd_root($ho, <$suite); + $ps_url = preseed_create_guest($gho, '', Suite=>$suite, PvMenuLst=>($bl eq "pvgrub")); $extra_disk = ""; } @@ -149,7 +151,14 @@ END guest_await_shutdown($ho,$gho,2000); guest_destroy($ho,$gho); - my $blcfg = < "/usr/local/lib/xen/boot/pv-grub-x86_32.gz", + amd64 => "/usr/local/lib/xen/boot/pv-grub-x86_64.gz" + }; + my $blcfg = $bl eq "pvgrub" ? <