Source: grub2
Version: 2.04-12
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-kali
X-Debbugs-Cc: [email protected]

Tools like simple-cdd ensures the presence of grub-efi on the generated
ISO image but don't have a simple way to to deal with architecture
specific packages.

When we tested an arm64 image generated by simple-cdd, it was lacking the
grub-efi support and thus the installer was broken.

Thus I'd like to suggest to keep grub-efi not as a transitional package
but as normal dummy package depending on the appropriate package for
each architecture.

The attached patch implements this.

Thank you for considering this!

-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog <[email protected]>
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋    The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄⠀⠀⠀⠀   Debian Long Term Support: https://deb.li/LTS
>From daac70ae96762596a385a30118988deaae2e6a89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <[email protected]>
Date: Thu, 4 Feb 2021 11:02:10 +0100
Subject: [PATCH] Extend grub-efi to also cover arm64/ia64/arm

Tools like simple-cdd ensures the presence of grub-efi on the generated
ISO image but don't have a simple way to to deal with architecture
specific packages.

Thus I'd like to suggest to keep grub-efi not as a transitional package
but as normal dummy package depending on the appropriate package for
each architecture.
---
 debian/control | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 656645077..bb0851b10 100644
--- a/debian/control
+++ b/debian/control
@@ -59,15 +59,18 @@ Description: GRand Unified Bootloader, version 2 (dummy package)
  This is a dummy transitional package that depends on grub-coreboot.
 
 Package: grub-efi
-Section: oldlibs
-Architecture: any-i386 any-amd64
+Architecture: any-i386 any-amd64 any-arm64 any-ia64 any-arm
 Pre-Depends: ${misc:Pre-Depends}
-Depends: ${misc:Depends}, grub-efi-ia32 (= ${binary:Version}) [any-i386], grub-efi-amd64 (= ${binary:Version}) [any-amd64]
+Depends: ${misc:Depends}, grub-efi-ia32 (= ${binary:Version}) [any-i386], grub-efi-amd64 (= ${binary:Version}) [any-amd64], grub-efi-arm64 (= ${binary:Version}) [any-arm64], grub-efi-ia64 (= ${binary:Version}) [any-ia64], grub-efi-arm (= ${binary:Version}) [any-arm]
 Multi-Arch: foreign
 Description: GRand Unified Bootloader, version 2 (dummy package)
- This is a dummy transitional package that depends on either grub-efi-ia32 or
- grub-efi-amd64, depending on the architecture.
-
+ This is a dummy package that depends on the appropriate grub-efi-$ARCH
+ for each architecture:
+  - grub-efi-amd64 on amd64
+  - grub-efi-ia32 on i386
+  - grub-efi-arm64 on arm64
+  - grub-efi-ia64 on ia64
+  - grub-efi-arm on arm
 
 Package: grub-common
 Architecture: any
-- 
2.30.0

Reply via email to