]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-debian-di-install: Install pv-grub-menu in ARM guests, always.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 13 Aug 2015 16:52:37 +0000 (17:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 4 Sep 2015 11:09:48 +0000 (12:09 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-debian-di-install

index 612e0fa2d3cded165eae44a7e2607852bb151b7f..eef46811474a19d7c015cddbc4437aa90bca5a8e 100755 (executable)
@@ -190,9 +190,20 @@ END
 
        $method_cfg = setup_netboot($tmpdir, $arch, $suite);
 
+       # We need the pv-grub-menu package:
+       # - On x86 when running pvgrub, since pvgrub only speaks grub1
+       #   menu.lst syntax and grub2 is now the only grub in
+       #   Debian.
+       # - On ARM, which uses pygrub, because grub2 is not installed
+       #   on ARM by default (except for, maybe, UEFI guests in the
+       #   future, but not today).
+       #
+       # NB: "pvgrub" is grub1/grub-legacy, not PV grub2.
+       my $pvmenulst = ($bl eq "pvgrub" || $arch =~ /arm/);
+
        $ps_url = preseed_create_guest($gho, $arch, '',
                                       Suite=>$suite,
-                                      PvMenuLst=>($bl eq "pvgrub"));
+                                      PvMenuLst=>$pvmenulst);
 
        $extra_disk = "";
     }