All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bsd: Fix type passed for the kernel
@ 2025-03-02 21:04 Vladimir Serbinenko
  2025-03-04 13:25 ` Daniel Kiper
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Serbinenko @ 2025-03-02 21:04 UTC (permalink / raw)
  To: grub-devel; +Cc: Vladimir Serbinenko

FreeBSD loader always passes "elf kernel". -CURRENT kernel accepts only
"elf kernel", older kernel accepts either.

Tested on FreeBSD and DragonFlyBSD

Reference: https://cgit.freebsd.org/src/commit/?id=b72ae900d4348118829fe04abdc11b620930c30f

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 grub-core/loader/i386/bsd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
index dd1024d4b..ac70dde8c 100644
--- a/grub-core/loader/i386/bsd.c
+++ b/grub-core/loader/i386/bsd.c
@@ -1876,9 +1876,7 @@ grub_cmd_freebsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
 	  grub_file_t file;
 	  int len = is_64bit ? 8 : 4;
 
-	  err = grub_freebsd_add_meta_module (argv[0], is_64bit
-					      ? FREEBSD_MODTYPE_KERNEL64
-					      : FREEBSD_MODTYPE_KERNEL,
+	  err = grub_freebsd_add_meta_module (argv[0], FREEBSD_MODTYPE_KERNEL,
 					      argc - 1, argv + 1,
 					      kern_start,
 					      kern_end - kern_start);
-- 
2.48.1


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-04 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 21:04 [PATCH] bsd: Fix type passed for the kernel Vladimir Serbinenko
2025-03-04 13:25 ` Daniel Kiper
2025-03-04 13:45   ` Vladimir 'phcoder' Serbinenko
2025-03-04 14:20     ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.