From: Ian Campbell Subject: [PATCH OSSTEST 09/15] Enable chain loading to local disk for UEFI PXE systems. Date: Fri, 22 May 2015 13:29:46 +0100 Message-ID: <1432297792-5196-9-git-send-email-ian.campbell@citrix.com> References: <1432297776.14664.31.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432297776.14664.31.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 First arrange for bootloader to be installed to removable media path, by using a new in Jessie preseed option. Then use that to chainload a bootloader from the disk. The removable media path is well known (part of the UEFI spec) which saves us having to worry about which OS is on the host (so long as the OS can be configured to populate the removable media path) Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 2 ++ Osstest/TestSupport.pm | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index cd2ad9b..e89ca6c 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -689,6 +689,8 @@ d-i apt-setup/contrib boolean false d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, chiark-utils-bin, $extra_packages +d-i grub-installer/force-efi-extra-removable boolean true + $xopts{ExtraPreseed} END diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 6450ee6..fe06e87 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -2148,8 +2148,24 @@ END sub setup_uefi_pxeboot_local ($) { my ($ho) = @_; + my %efi_archs = qw(amd64 X64 + arm32 ARM + arm64 AARCH64 + i386 IA32); + die "EFI arch" unless $efi_archs{ $r{arch} }; + my $efi = $efi_archs{ $r{arch} }; setup_grub_efi_bootcfg($ho, <