04-05-2024, 03:50 PM
Ok, i experimented a bit ...
1. I searched for BOOTX64.EFI. The VENTOY EFI drive must be visible for this and i found it in the LOCALBOOT.CFG.
2. Then I copied out
set VTOY_SEARCH_NO_VTOYEFI=1
if search -n -s -f /efi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /efi/boot/bootx64.efi
boot
elif search -n -s -f /vtefi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /vtefi/boot/bootx64.efi
boot
else
unset VTOY_SEARCH_NO_VTOYEFI
echo "BOOTX64.EFI NOT found ..."
fi
}
and copied it into the VENTOY_GRUB.CFG.
menuentry "BOOT FIREWALL" --class=boot_uefi --class=custom {
set VTOY_SEARCH_NO_VTOYEFI=1
if search -n -s -f /efi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /efi/boot/bootx64.efi
boot
elif search -n -s -f /vtefi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /vtefi/boot/bootx64.efi
boot
else
unset VTOY_SEARCH_NO_VTOYEFI
echo "BOOTX64.EFI NOT found ..."
fi
}
menuentry '<-- EXIT [Esc]' --class=vtoyret VTOY_RET {
echo 'Return ...'
}
3. I changed / add in the VENTOY.JSON the default image and time.
"control":[
{ "VTOY_MENU_TIMEOUT": "30" },
{ "VTOY_DEFAULT_IMAGE": "F6>" }
]
Now the USB drive boots after 30 seconds the OPNSENSE installation from the hard drive ...
I have no idea if this is correct, but it works.
1. I searched for BOOTX64.EFI. The VENTOY EFI drive must be visible for this and i found it in the LOCALBOOT.CFG.
2. Then I copied out
set VTOY_SEARCH_NO_VTOYEFI=1
if search -n -s -f /efi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /efi/boot/bootx64.efi
boot
elif search -n -s -f /vtefi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /vtefi/boot/bootx64.efi
boot
else
unset VTOY_SEARCH_NO_VTOYEFI
echo "BOOTX64.EFI NOT found ..."
fi
}
and copied it into the VENTOY_GRUB.CFG.
menuentry "BOOT FIREWALL" --class=boot_uefi --class=custom {
set VTOY_SEARCH_NO_VTOYEFI=1
if search -n -s -f /efi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /efi/boot/bootx64.efi
boot
elif search -n -s -f /vtefi/boot/bootx64.efi; then
unset VTOY_SEARCH_NO_VTOYEFI
terminal_output console
chainloader /vtefi/boot/bootx64.efi
boot
else
unset VTOY_SEARCH_NO_VTOYEFI
echo "BOOTX64.EFI NOT found ..."
fi
}
menuentry '<-- EXIT [Esc]' --class=vtoyret VTOY_RET {
echo 'Return ...'
}
3. I changed / add in the VENTOY.JSON the default image and time.
"control":[
{ "VTOY_MENU_TIMEOUT": "30" },
{ "VTOY_DEFAULT_IMAGE": "F6>" }
]
Now the USB drive boots after 30 seconds the OPNSENSE installation from the hard drive ...
I have no idea if this is correct, but it works.