@TheBitFighter said in Custom boot config per host/group:
Is it possible to set different refind.conf files for different hosts?
Would there be a different solution to only effect the HP hosts with this solution?
No for both as far as I know. Though I have to admit that I am not part of the project since the beginning and there might be something I am not aware of yet.
And if both answers are no, would it be possible to implement such a feature in FOG?
Absolutely. FOG is open source and you can implement anything you want. Just start by looking at bootmenu.class.php (line 160). Here you see an array of the entries which will be available for selection in the web UI. So you can just add your custom entry here:
...
$refind_hp = sprintf(
'imgfetch ${boot-url}/service/ipxe/refind_hp.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_x64.efi',
"\n"
);
...
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,
'refind_efi_hp' => $refind_hp,
'exit' => 'exit',
);
...
As well you need to add your custom exit type to another file called service.class.php for it to be select-able in the host/group settings:
...
$types = array(
'sanboot',
'grub',
'grub_first_hdd',
'grub_first_cdrom',
'grub_first_found_windows',
'refind_efi',
'refind_efi_hp',
'exit',
);
...