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:
Hello, Bug #932966 in grub2 reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/grub-team/grub/commit/6335160a22b3cc4f7baa971bdf0927ae236e631d ------------------------------------------------------------------------ Fix UEFI installation for Devuan Closes: #932966 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/932966
We believe that the bug you reported is fixed in the latest version of
grub2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 932966@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated grub2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 30 Aug 2019 13:50:41 +0100
Source: grub2
Architecture: source
Version: 2.04-3
Distribution: unstable
Urgency: medium
Maintainer: GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 931969 932966 936082
Changes:
grub2 (2.04-3) unstable; urgency=medium
.
* Apply patch from James Clarke to fix BIOS Boot Partition support on
sparc64 (closes: #931969).
* Fix UEFI installation for Devuan (thanks, Ivan J.; closes: #932966).
* Add probe module to signed UEFI images (closes: #936082).
Checksums-Sha1:
0409608f1f27ed36d1e45d8c5a2558dcb7c666c5 7218 grub2_2.04-3.dsc
9175e19a9c19130c7d757cc09711f4ac534ae341 1049568 grub2_2.04-3.debian.tar.xz
Checksums-Sha256:
a62664b2905a9719e276cc4591b322d989624400d2d9247e22078da4177c379d 7218 grub2_2.04-3.dsc
24cc148ae048216aca8250f0dd711cf6e973fd7f45a3b878dc60ba1e6ef91977 1049568 grub2_2.04-3.debian.tar.xz
Files:
029277b07a09ab436e881bb5d1cf12ef 7218 admin optional grub2_2.04-3.dsc
e0f474018986f08743f1480dfd212504 1049568 admin optional grub2_2.04-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAl1pG9gACgkQOTWH2X2G
UAv5hQ//ZPvHk3q5E3U2Z4vtPZL5befeLo23TfnAtftWjVd57Bo90tKT2lScjVbi
g2q0zRRGlMjZRw8WYFh5iUhZz1flMqh6M3S9GHHvxl5S5A1bwcRM5hZ1yan7W8zZ
QlSMFJPV0YSbZHDR5ZI94pa/2Mc/jrI4358mILqJU7h/SrVyYr43mRGh8CsgBnNg
ZVkszHc+FVa5XWPYp19+vCS+TQLy8lF9OKIkKXCmLtwk4MvSwgN64khixLwBOSKk
YD73ubXKFCsGn/OzexplzKZhBDhZJX7ePjNEQ0ZODqyQWAckXosr2umXNXx7MbLE
458eUkxHjBMS/nodfM1xQ/e5udkFd8jjO29l+t9uclpsU+EeMbQvTlj4XqkjIQjH
/PCNT5nkOpLIRBHSyOcpHlxebNvyX7Uu3sMjInZVmp/H5YbVoukeci7TzFdm4pNa
+DgenjW1zDT/Nq2P1Cd0WSwsBKHEi/dSSoJOl/pqHawXBargBHtTGhJQp62etxWp
0eXX+dj/jrpK5MuqpYA1qsGtT8ytCPTkTo6C+IobldI89/h6b8SgZEi3B/GtFlS5
7FZCnaD9QA/TeQKE3MpA4q9fd/+jG6EhJPyJFdHmln5vjkGIctopSO2KkxadOnF5
UnrlgC9GRA7GOnUAyQ2EEuAkNrSIaqlHZZnM+5jsMKlmrBzo/NI=
=IaNG
-----END PGP SIGNATURE-----
Hi Ivan, Apologies for not seeing this bug earlier - I should have responded way back when you first opened it, sorry... :-/ Ummmm. Kubuntu is very much maintained as a tiny variation from Ubuntu, using the same kernel, grub, shim, etc. AFAIK Devuan is *not* doing the same style of variation from Debian? In that case, Devuan should absolutely *not* be installing things in the ESP under /EFI/debian but should switch everything to /EFI/devuan instead. That would also have the advantage for users that dual-booting between Debian and Devuan would work, with different boot entries etc.