[syslinux] PXE boot img for both BIOS and EFI

Carl Karsten carl at personnelware.com
Wed Dec 12 15:46:45 PST 2018


On Wed, Dec 12, 2018 at 5:29 PM Joakim Tjernlund
<Joakim.Tjernlund at infinera.com> wrote:
>
> On Wed, 2018-12-12 at 17:10 -0600, Carl Karsten wrote:
> > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
> >
> >
> > On Wed, Dec 12, 2018 at 4:54 PM Joakim Tjernlund
> > <Joakim.Tjernlund at infinera.com> wrote:
> >
> > > While I am here, I want to ask:
> > > Is there a way to create a combined PXE boot img for both BIOS and EFI ?
> > > Currently one have to use 2 different images.
> >
> > I'm a little fuzzy what you mean here.
>
> Can you have one pxelinux.0 which will work for both UEFI resp. BIOS PXE ?
>

I don't think so, but I think this may solve the problem:

(I've seen it work, not sure what state it is in now, lots of work has
been done and I haven't needed to uefi pxe boot in about a year.

https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/pxe.conf
# https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Using_ProxyDHCP_.28dnsmasq.29

> >
> > do you want the tftp server to send boot img?
> >
> > I think you should explain the steps of what boots what.
> >
> >
> > > Also, can one have GRUB bootable PXE img?
> >
> > I would ask on a grub list ;)
> >
>
> No, this is a syslinux thing. Basically have grub load(over tftp) and run pxelinux.0 using
> some other syslinux module.

you want grub to pxe boot?

I think this:

dhcp-boot=tag:efibc,boot/grubnetx64.efi.signed
https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/pxe.conf#L23
https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/templates/grub.cfg.j2

that's grub pxe booting Debian installer.

once you have grub pxe booting, you can add thing for it to boot:
menuentry "ipxe" {
   linux16 ipxe/ipxe.lkrn
}


>
>  Jocke
>


-- 
Carl K


More information about the Syslinux mailing list