FOG exit to local GRUB option
-
I am looking for a way to exit from a FOG task to a specific GRUB menu option on the client machine.
My goal it to find a way to achieve a one time iPXE boot option on a legacy GRUB Linux machine by copying the iPXE kernel to the /boot folder on the client machine, then adding a grub menu entry for iPXE so that I have a grub menu.lst file similar todefault 0 timeout 0 title BIOS iPXE Boot root (hd0,0) kernel /boot/ipxe.lkrn title openSUSE - Kernel 3.1.0-1.2 root (hd0,0) cedarview_gfx.modeset=0 kernel /boot/vmlinuz splash=silent quiet initrd /boot/initrd
I have tested this and it works well , but I end up in a boot-loop and I can not see a method to automatically exit a FOG session that would allow me to move on to the next menu option as all EXIT options I have tried so far end up back at the GRUB menu with a default of iPXE
Is there a way to use a custom GRUB_EXIT_TO_MENU_OPTION or maybe some better way to achieve this ?
So far I have tried the following exit options
GRUB - finds the local GRUB , but oots to the default iPXE option
GRUB-FIRT-HDD -same as above , - I have the ipxe bootloader and menu option on the HDD
REFIND-EFI - this machine is very legacy and did not manage to load REFIND neither from FOG, nor a rEFInd bootable USB for testing ( this USB was tested on more modern machines and did work)
EXIT - Still ends up back at the same grub menu with iPXE as defaultI can see that there are other ways to booting to iPXE ( eg bootable USB , BIOS option etc), but this method of adding the files to the main HDD would allow me to do all this remotely, without the need for access to the machine, e.g. over ssh and the basic concept is working well. I just am not sure how to solve the boot loop EXIT issue