#!ipxe # Configuración inicial set ISODIR ogLive :bios_boot_first_second echo "Booting firstboot and secondboot flow using GRUB4DOS..." # Pasar control a GRUB4DOS para manejar firstboot y secondboot chain tftp://__SERVERIP__/tftpboot/grub.exe --config-file=" # Configurar ISODIR timeout 0 set ISODIR=${ISODIR}; # Firstboot find --set-root --ignore-floppies --ignore-cd /ogboot.me checkrange 0x07 parttype > nul; cmp /ogboot.me /ogboot.firstboot || goto secondboot; write /ogboot.firstboot iniciado; pause Firstboot passed. File updated. Press any key to continue...; chainloader +1; boot; # Secondboot :secondboot find --set-root --ignore-floppies --ignore-cd /ogboot.me checkrange 0x07 parttype > nul; cmp /ogboot.me /ogboot.secondboot || goto fallback; write /ogboot.secondboot iniciado; pause Secondboot passed. File updated. Press any key to continue...; chainloader +1; boot; # Fallback :fallback pause Firstboot and Secondboot failed. Press any key to continue...; quit; " || echo "Failed to execute GRUB fallback sequence."