[elbe-devel] [PATCH] Support GRUB 2.06
bage at linutronix.de
bage at linutronix.de
Fri Oct 22 11:32:03 CEST 2021
From: Dave Smith <davidwsmith at fmgl.com.au>
Debian Bullseye has upgraded to GRUB 2.06 and a tweak is required for ELBE
to support it.
In 2.06 the default target has changed from i386-pc to x86_64-efi. The
simple solution is to always specify the target and not rely on the default.
Signed-off-by: Dave Smith <davidwsmith at fmgl.com.au>
Signed-off-by: Bastian Germann <bage at linutronix.de>
---
elbepack/hdimg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index d1cc2e28b..696225925 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -208,7 +208,7 @@ class grubinstaller202(grubinstaller_base):
"${f[0]} /boot/efi/EFI/debian/${f[0]%%.signed}'" %
imagemnt)
if not self.fw_type or "bios" in self.fw_type:
- do("chroot %s grub-install --no-floppy %s" %
+ do("chroot %s grub-install --target=i386-pc --no-floppy %s" %
(imagemnt, poopdev))
except CommandError as E:
--
2.30.2
More information about the elbe-devel
mailing list