From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 10/15] distros: support booting Debian PV (d-i installed) guests with pvgrub. Date: Fri, 2 May 2014 15:18:08 +0100 Message-ID: <21347.43296.425850.404335@mariner.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <1398681696-2773-10-git-send-email-ian.campbell@citrix.com> <21347.38788.856531.344782@mariner.uk.xensource.com> <1399036736.6043.0.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: <1399036736.6043.0.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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH OSSTEST v2 10/15] distros: support booting Debian PV (d-i installed) guests with pvgrub."): > On Fri, 2014-05-02 at 14:03 +0100, Ian Jackson wrote: > > > - my $blcfg = < > > + my $pvgrub = { > > > + i386 => "/usr/local/lib/xen/boot/pv-grub-x86_32.gz", > > > + amd64 => "/usr/local/lib/xen/boot/pv-grub-x86_64.gz" > > > + }; > > > > I wonder, though, whether this knowledge about arch name mappings > > could be combined with that from > > ts-kernel-build:config_create_config_sh and put in Osstest.pm or > > somewhere. > > As in some sort of Osstest::arch_params{PvGrub}, {LinuxDefconfg}, > {LinuxKernelImage} ? > > I think so. I was thinking our %arch_debian2xen = qw(i386 x86_32 amd64 x86_64 armhf armhf); our %arch_xen2debian; $arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen; or some such. Then my $xenarch = $arch_debian2xen{$arch}; my $pvgrub = "/usr/local/lib/xen/boot/pv-grub-$xenarch.gz"; Or is that conceptually wrong ? Ian.