What options are available to accomplish the following boot scenario?
On boot (before boot) contact a defined webserver and ask what to boot (normal answer: boot from local hard drive; alternative answer: boot image XYZ)
The goal is to be able to reinstall the clients without the need of a user interaction at the clients. The logical way to do this would be PXE booting but as we don't control the environment defaulting to regular booting PXE is insecure as it would open an attack vector.
What I have found and tried so far is the following: Starting Grub2 from local hard drive and chainloading iPXE. iPXE then contacts the defined webserver over http and gets an iPXE script back. But from there I haven't yet found a way to boot from the local drive (except for starting Grub again and ending in an endless loop). The OS I would like to boot is on partition 2 of the same hard drive as Grub/iPXE is started from.
- Is there an alternative way to accomplish what we try to accomplish?
- Is there a way to tell Grub to select a different option on the second start (comming back from iPXE) or to tell iPXE to boot from partition 2?
Side note: Partition 2 contains a Windows Boatloader and can be booted from the Grub Menu.