@gazzer82 said in Unable to boot to HDD whilst using PXE Boot USB:
Is their any way for me to target specific machines with different settings?
You can set specific EXIT TYPES for each host machines. Unfortunately there is no way to specify individual refind.conf files in FOG yet. Though it’s not very hard to manually add this to the code. I might suggest you give this a try as we won’t have the time to add this as a feature as quickly.
Edit /var/www/html/fog/lib/fog/bootmenu.class.php and jump to line 135. Here you add another variable same as the one above in line 131-135 so it looks like this:
$refind = sprintf(
'imgfetch ${boot-url}/service/ipxe/refind.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_x64.efi',
"\n"
);
$refindbugged = sprintf(
'imgfetch ${boot-url}/service/ipxe/refindbugged.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_x64.efi',
"\n"
);
...
The only difference between the two is the variable name and the conf file name.
In that same file jump to line 170 (166 if you have not added the code above yet) and add the new item to the list here:
...
self::$_exitTypes = array(
'sanboot' => $sanboot,
'grub' => $grub['basic'],
'grub_first_hdd' => $grub['basic'],
'grub_first_cdrom' => $grub['1cd'],
'grub_first_found_windows' => $grub['1fw'],
'refind_efi' => $refind,
'refindbugged_efi' => $refindbugged,
'exit' => 'exit',
);
...
And now there is one more place to edit to make this new item available in the web UI: /var/www/html/fog/lib/fog/service.class.php - around line 210:
....
$types = array(
'sanboot',
'grub',
'grub_first_hdd',
'grub_first_cdrom',
'grub_first_found_windows',
'refind_efi',
'refindbugged_efi',
'exit',
);
...
Save the changes and go back to the web UI. You should be able to select “REFINDBUGGED_EFI” in the host settings now. Create a file /var/www/html/fog/service/ipxe/refindbugged.conf with the specific settings you want for those clients.
Those changes will be lost when you update your FOG installation. This is definitely not a proper fix for your situation. But this should help you work around the issue for now.