stevenshiau / drbl

Diskless Remote Boot in Linux.
GNU General Public License v2.0
64 stars 24 forks source link

uEFI PXE boot autodetection #20

Open JuanVCS opened 2 years ago

JuanVCS commented 2 years ago

Any way to have both BIOS and EFI support without having to change the pxelinux config, thus making it mutually exclusive?

stevenshiau commented 2 years ago

What did you mean? Please describe more so that we can understand that. Thanks.

JuanVCS commented 2 years ago

I set up DRBL on a Debian Buster server as per these instructions https://drbl.org/installation/

I can change this "PATH" setting on the PXE config file to either bios or efi64 as instructed here https://github.com/stevenshiau/drbl/blob/master/sbin/generate-pxe-menu#L268

But then only BIOS or EFI clients will boot, not both at the same time.

Just wondering if there is a way to have all clients boot with a single configuration.

stevenshiau commented 2 years ago

Why you want to manually change that? For legacy PXE booting, the setting in the server is /tftpboot/nbi_img/pxelinux.cfg/default. For uEFI net booting, the setting in the server is /tftpboot/nbi_img/grub/grub.cfg. After you run "drblsrv -i" and "drblpush -i", both of these two files will be configured correctly. When you use "dcs" to switch the mode of clients, these two files will be modified automatically. You do not have to manually modify that.

Steven