]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
ts-xen-install: Install additional .debs for UEFI
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2018 17:50:44 +0000 (18:50 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 May 2018 16:13:28 +0000 (17:13 +0100)
grub2 from stretch cannot boot Xen under UEFI.  But that from buster
can, and it can be simply installed, even on jessie.  So do that.

I have copied the binaries for 2.02+dfsg1-4 to
images/grub2-uefi-amd64-2018-04-01 in Massachusetts.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
production-config
ts-xen-install

index e1c437b37da5a06eb0753824d2695f79fcb2da43..aa414d0555b12afa8b750de4a9058a527bc19502 100644 (file)
@@ -106,6 +106,11 @@ MicrocodeUpdateI386 microcode.x86.2015-06-12.cpio
 # Update with ./mg-netgrub-loader-update
 TftpGrubVersion XXXX-XX-XX
 
+ExtraDebs_uefi_i386_jessie   2018-04-01
+ExtraDebs_uefi_amd64_jessie  2018-04-01
+ExtraDebs_uefi_i386_stretch  2018-04-01
+ExtraDebs_uefi_amd64_stretch 2018-04-01
+
 XenUsePath /usr/groups/xencore/systems/bin/xenuse
 XenUseUser osstest
 
index fa7d7dba0e364bc8f863431d53e209b20cb7a50f..a9f8631efcf97cd2f836d9b540631c4123f26466 100755 (executable)
@@ -72,6 +72,16 @@ sub packages () {
         if toolstack($ho)->{ExtraPackages};
 }
 
+sub extradebs () {
+    my $firmware = get_host_property($ho, "firmware", "bios");
+    my $version = $c{ "ExtraDebs_${firmware}_$r{arch}_$ho->{Suite}" };
+    return unless $version;
+    target_install_packages($ho, 'rsync');
+    my $extradebs = "$c{Images}/extradebs-$firmware-$r{arch}-$version";
+    target_putfile_root($ho,300, "$extradebs/.", 'extradebs', '-r');
+    target_cmd_root($ho,"dpkg --force-confold -iGROEB extradebs </dev/null",300);
+}
+
 sub extract () {
     my @parts = ('', 'kern', 'xen');
     push @parts, 'libvirt' if $r{toolstack} eq "libvirt";
@@ -369,6 +379,7 @@ if ($checkmode) {
     $ho= $hos[0];
     
     packages();
+    extradebs();
     extract();
     forbidden();
     adjustconfig();