From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [OSSTEST v6 11/24] distros: support booting Debian PV (d-i installed) guests with pvgrub. Date: Wed, 6 May 2015 10:56:40 +0100 Message-ID: <1430906213-30108-11-git-send-email-ian.campbell@citrix.com> References: <1430905605.2660.187.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1430905605.2660.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 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 patch). 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 --- v3: Define and use arch_debian2xen and arch_xen2debian Avoid pv-grub-x86_64.gz on i386 dom0, we don't built it there. Fiddle with py vs pv grub stripy a bit. --- Osstest.pm | 7 +++++++ Osstest/Debian.pm | 2 +- make-distros-flight | 21 ++++++++++++++++++++- ts-debian-di-install | 11 +++++++++-- 4 files changed, 37 insertions(+), 4 deletions(-) diff --git a/Osstest.pm b/Osstest.pm index 7f72bc6..7ee00b1 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -38,6 +38,7 @@ BEGIN { db_begin_work ensuredir get_filecontents_core_quiet system_checked nonempty visible_undef show_abs_time + %arch_debian2xen %arch_xen2debian ); %EXPORT_TAGS = ( ); @@ -49,6 +50,12 @@ our $mjobdb; our $dbh_tests; +our %arch_debian2xen = qw(i386 x86_32 + amd64 x86_64 + armhf armhf); +our %arch_xen2debian; +$arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen; + #---------- static default config settings ---------- our %c = qw( diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index f7ef1d9..c3ef93f 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -710,7 +710,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($ho, $suite, $sfx, $extra_packages, %xopts); $preseed_file.= (<{Guest}_method"}; my $tmpdir= "/root/$flight-$job-di"; + 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 = ""; } @@ -152,7 +154,12 @@ END guest_await_shutdown($ho,$gho,3600); guest_destroy($gho); - my $blcfg = <