chenall / grub4dos

外部命令和工具源码:https://github.com/chenall/grubutils 下载:
http://grub4dos.chenall.net
GNU General Public License v2.0
650 stars 136 forks source link

Unable to load menu in under UEFI PXE Boot #262

Open GamingCity opened 3 years ago

GamingCity commented 3 years ago

Hi, ive been testing the grub4dos 04/26 release for UEFI network boot, i have a whole network Legacy boot system using grub4dos that has been working for years, so now im trying to migrate to UEFI.

So i tried with UEFI version, i just cant make it see the menu file or files (using a "menu.lst" folder and files inside with a default one and names by mac is going to be supported on the UEFI version right? Anyway, i just tried with the provided menu.lst file, i tried using the /efi/grub/ but does not work, and i dont see any request on the tftp log of any file.

yaya2007 commented 3 years ago

Using the tail menu. New features of the new version .

GamingCity commented 3 years ago

Sorry, I did not understand that. To make it clear, "/" is my tftp root, grub4dos efi file is in there, then i created /efi/grub/menu.lst file, (i copied the one in the zip file), but when netowork booting grub is unable to detect the menu file.

This feature is not supported yet i guess? Or there is something wrong with my folder structure?

And yes, i also wanted to know if having menu files names as the client mac address will be still be allowed, as i have some pcs in my network that i want to access a specific menu file.

yaya2007 commented 3 years ago

have a try grub4dos-for_UEFI-2021-04-30.7z.txt

GamingCity commented 3 years ago

Its the same problem. I think it is lossing connection to the tftp, because on command line trying to do a "ls" gives "error 12: invalid device".

I checked on my tftp server, it does not request any file, i should be able to see there that is requesting the"/efi/grub/menu.lst" but it ist.

yaya2007 commented 3 years ago

I'll test it here and display the menu directly after starting. I don't know how you started it.

GamingCity commented 3 years ago

nothing strange, just dropped the efi into my tftp server, the the dhcp server to boot that filename and created the proper /efi/grub folder. I just get the "find /efi/grub/menu.lst, commandline, reboot, halt" screen on the client pc.

I should be able to see con the tftp console that grub is requesting the menu file, even if it cant find it i should be able to see that it is searching for it, there is nothing on the console.

https://i.imgur.com/RyMWUQn.png

GamingCity commented 3 years ago

Today i tried something diferent, using the mkimage to add the menu.lst directly into the efi file, this works, the menu loads, but just as before i cant chainload anything that is on the tftp root... trying to do something like "chainload /boot/bootmgrfw.efi" ends with a "invalid device specified", same thing as doing a "ls" on the shell... it is dropping the tftp server link, thats why it cant load a menu file from it either.