From: Ian Jackson Subject: Re: [OSSTEST v6 13/24] distros: support PV guest install from Debian netinst media. Date: Tue, 12 May 2015 16:52:08 +0100 Message-ID: <21842.8616.482657.154030@mariner.uk.xensource.com> References: <1430905605.2660.187.camel@citrix.com> <1430906213-30108-13-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1430906213-30108-13-git-send-email-ian.campbell@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 Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[OSSTEST v6 13/24] distros: support PV guest install from Debian netinst media."): > The netinst media are iso images containing a base Debian install and > some (image size dependent) additional tasks. Most of this looks good to me. > + amd64 => { PathArch => "multi-arch", FileArch => "amd64-i386", IsoPath => "/install.amd/xen" }, > + i386 => { PathArch => "multi-arch", FileArch => "amd64-i386", IsoPath => "/install.386/xen" }, > + armhf => { PathArch => "armhf", FileArch => "armhf", IsoPath => "/install.armhf" } Wrap damage on my screen. I appreciate that you want to retain the tabular nature, but perhaps my %arch_props = ( amd64 => [ "multi-arch", "amd64-i386", "/install.amd/xen" }, i386 => [ "multi-arch", "amd64-i386", "/install.386/xen" }, armhf => [ "armhf", "armhf", "/install.armhf" }, ) my ( $path_arch, $file_arch, $iso_path ) = @{ $arch_props{$arch} }; Or something ? > + my $baseurl = $cd eq "current" ? > + "http://cdimage.debian.org/debian-cd/current/$props->{PathArch}/jigdo-cd" : > + "http://cdimage.debian.org/cdimage/weekly-builds/$props->{PathArch}/jigdo-cd"; This should surely come from a runvar (or perhaps a config option) rather than being hardcoded. Ian.