@george1421 HI George,
I’ve started again replcing all config files and checking /boot has no refind.conf files.
i’m now at a point where I have both choices in fog:
The orginal refind.conf option works AND i can change default boot choice.
The new refindx2.conf option is ignored, i can even delete refindx2.conf and it still boots into a refind menu. I’ve also checked the refindx2 option and it’s not reading the original refind.conf.
here’s me remade settings:
bootmenu.class.php
public function __construct()
{
parent::__construct();
$grubChain = 'chain -ar ${boot-url}/service/ipxe/grub.exe '
. '--config-file="%s"';
$sanboot = 'sanboot --no-describe --drive 0x80';
$refind = sprintf(
'imgfetch ${boot-url}/service/ipxe/refind.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_x64.efi',
"\n"
);
$refindx2 = sprintf(
'imgfetch ${boot-url}/service/ipxe/refindx2.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_x64.efi',
"\n"
);
if (stripos($_REQUEST['arch'], 'i386') !== false) {
//user i386 boot loaders instead
$refind = sprintf(
'imgfetch ${boot-url}/service/ipxe/refind.conf%s'
. 'chain -ar ${boot-url}/service/ipxe/refind_ia32.efi',
"\n"
);
}
and further down the same file
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_efix2' => $refindx2,
'exit' => 'exit',
);
service.class.php
if (empty($name)) {
$name = $this->get('name');
}
$types = array(
'sanboot',
'grub',
'grub_first_hdd',
'grub_first_cdrom',
'grub_first_found_windows',
'refind_efi',
'refind_efix2',
'exit',
);