Bug#932966: GRUB2 EFI has incompatibility with Devuan
Ivan J.
parazyd at dyne.org
Thu Jul 25 10:01:54 BST 2019
Package: grub-common
Version: 2.02+dfsg1-20
Source: grub2
When in Devuan grub is updated to the buster version, there is an EFI
signing issue with --bootloader-id, because 'devuan' is not recognized.
This renders an error in GRUB when booting and requires manual
interference to boot the system by loading the kernel and initramfs.
The issue is much the same like KUbuntu, which already has a patch, and
supporting Devuan should be done in the same way.
A patch to fix this against current git master on salsa would be the
following:
diff --git a/debian/postinst.in b/debian/postinst.in
index e23d2d5c3..547a5185a 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -675,6 +675,7 @@ case "$1" in
cut -d' ' -f1)"
case $bootloader_id in
kubuntu) bootloader_id=ubuntu ;;
+ devuan) bootloader_id=debian ;;
esac
if [ "$bootloader_id" ] && [ -d "/boot/efi/EFI/$bootloader_id" ]; then
case @PACKAGE@ in
diff --git a/util/grub-install.c b/util/grub-install.c
index 35d150c33..666cef3d2 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -1212,6 +1212,8 @@ main (int argc, char *argv[])
efi_distributor = bootloader_id;
if (strcmp (efi_distributor, "kubuntu") == 0)
efi_distributor = "ubuntu";
+ else if (strcmp (efi_distributor, "devuan") == 0)
+ efi_distributor = "debian";
switch (platform)
{
case GRUB_INSTALL_PLATFORM_I386_EFI:
More information about the Pkg-grub-devel
mailing list