I am trying to replace syslinux with grub to support efi on hd-media
some background:
https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/7#note_75072

In poking around, I got lost. I suspect I need help with grub.conf, where
to put it and what goes in it.

I wrote a script that builds an image, but doesn't ... boot grub I think?

I see gen-hd-image and efi-image  which seems like things I should use.

Here is my failing attempt
https://salsa.debian.org/carlfk-guest/debian-installer/-/blob/hd-grub/build/util/mk_hd_grub.sh

I test with qemu -bios OVMF.fd
I end up at an efi shell

UEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (Debian distribution of EDK II, 0x00010000)
Mapping table
      FS0: Alias(s):HD1a0b:;BLK2:
          PciRoot(0x0)/Pci(0x1,0x2)/USB(0x0,0x0)/HD(1,MBR,0x69AD6B31)
     BLK0: Alias(s):
          PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0)
     BLK1: Alias(s):
          PciRoot(0x0)/Pci(0x1,0x2)/USB(0x0,0x0)
Press ESC in 4 seconds to skip startup.nsh or any other key to continue.
Shell>

to demo the test is somewhat valid, I can  boot linux if I drop in a bunch
of syslinx stuff by flipping false to true, then qemu:
Loading linux... ok
Loading initrd.gz...ok

so how do I do that but with grub?


-- 
Carl K

Reply via email to