Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Boot from Ventoy USB-Drive to boot a LOCAL DRIVE
#2
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.


Heart
Reply


Messages In This Thread
RE: Boot from Ventoy USB-Drive to boot a LOCAL DRIVE - by RGB - 04-05-2024, 03:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)