16 lines
577 B
Plaintext
16 lines
577 B
Plaintext
#!ipxe
|
|
|
|
# Detectar si se está ejecutando en modo UEFI o BIOS
|
|
iseq ${platform} efi && goto uefi_boot || goto bios_boot
|
|
|
|
:bios_boot
|
|
echo "Running in BIOS mode - Booting first disk, second partition"
|
|
chain http://__SERVERIP__/tftpboot/grub.exe --config-file="title FirstHardDisk-SecondPartition;root (hd0,1);chainloader (hd0,1)+1;boot" || echo "Failed to boot in BIOS mode"
|
|
exit
|
|
|
|
:uefi_boot
|
|
echo "Running in UEFI mode - Booting first disk, second partition"
|
|
sanboot --no-describe --drive 0 --filename \EFI\Part-01-02\Boot\ogloader.efi || echo "Failed to boot in UEFI mode"
|
|
exit
|
|
|