From: Ian Campbell Subject: [PATCH OSSTEST v3 19/19] Debian: Handle lack of bootloader support in d-i on ARM. Date: Mon, 1 Dec 2014 12:57:36 +0000 Message-ID: <1417438656-15451-19-git-send-email-ian.campbell@citrix.com> References: <1417438571.29138.22.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1417438571.29138.22.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 Debian doesn't currently know what bootloader to install in a Xen guest on ARM. We install pv-grub-menu above which actually does what we need, but the installer doesn't treat that as a "bootloader". Most ARM platforms end up installing a u-boot boot.scr, based on a platform whitelist. This doesn't seem appropriate for us. Grub is not available for arm32. For arm64 we will eventually end up with in-guest UEFI and therefore grub-efi and things will work normally. I'm not sure what the answer is going to be for arm32. Signed-off-by: Ian Campbell --- v3: New --- Osstest/Debian.pm | 12 ++++++++++-- ts-debian-di-install | 6 ++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 25cacd2..9bb0a59 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -579,8 +579,8 @@ END return $preseed; } -sub preseed_create_guest ($$;@) { - my ($ho, $sfx, %xopts) = @_; +sub preseed_create_guest ($$$;@) { + my ($ho, $arch, $sfx, %xopts) = @_; my $suite= $xopts{Suite} || $c{DebianSuite}; @@ -627,6 +627,14 @@ d-i grub-installer/bootdev string /dev/xvda END + # Debian doesn't currently know what bootloader to install in a + # Xen guest on ARM. We install pv-grub-menu above which actually + # does what we need, but the installer doesn't treat that as a + # "bootloader". + $preseed_file.= (<$suite, PvMenuLst=>($bl eq "pvgrub")); + $ps_url = preseed_create_guest($gho, $arch, '', + Suite=>$suite, + PvMenuLst=>($bl eq "pvgrub")); $extra_disk = ""; } @@ -170,7 +172,7 @@ END ($method_cfg,$extra_disk) = setup_netinst($tmpdir, $arch, $cd); - $ps_url = preseed_create_guest($gho, '', CDROM=>1); + $ps_url = preseed_create_guest($gho, $arch, '', CDROM=>1); } else { -- 2.1.1