Re: PXE GRUB booting for BIOS and UEFI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/8/22 01:23, Dominik 'Rathann' Mierzejewski wrote:
On Friday, 08 April 2022 at 08:57, Samuel Sieb wrote:
On 4/7/22 18:54, Neal Gompa wrote:
On Thu, Apr 7, 2022 at 9:21 PM Chris Adams <linux@xxxxxxxxxxx> wrote:

Once upon a time, Chris Murphy <lists@xxxxxxxxxxxxxxxxx> said:
syslinux (really isolinux) is only used on installation media.

It's commonly used for BIOS PXE booting as well.


*shudders at the memories of dealing with pxelinux*

GRUB is way better for that. Yes, you can use GRUB for PXE and UEFI netboot too.

That's what I use for both.

Would you care to document your set-ups?

It's pretty simple. I just adjusted my setup a bit and tested it in a VM in both UEFI and BIOS modes.
In dhcpd.conf:

option arch code 93 = unsigned integer 16;

In the dhcpd.conf subnet config:

  next-server <tftp_IP>;
  if option arch = 00:07 {
    filename "efi/shim.efi";
  } else {
    filename "boot/grub2/i386-pc/core.0";
  }

Those paths are just where I ended up putting them. (Note that in both cases you also need the other supporting files in those directories.) In both efi/grub.cfg and boot/grub2/i386-pc/grub.cfg there is one line:
source grub.cfg

That way both options will load the top-level grub.cfg file. It might be possible to use a symlink instead or hard link, but this works. Both methods now load the same grub.cfg file that you can put whatever you want in. The same commands work in both modes, now that "linuxefi" has been removed.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux