Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Boot from Ventoy USB-Drive to boot a LOCAL DRIVE
#3
(04-05-2024, 03:50 PM)RGB Wrote: 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
Edit localboot.cfg, try changing the code there
menuentry "$VTLANG_LB_SBOOT_HDD1" --class=boot_disk --class=F4boot {
        set root=(hd0,1)
        chainloader +1
        boot. boot
    }
become
menuentry "$VTLANG_LB_SBOOT_HDD1" --class=boot_disk --class=F4boot {
        set root=(hd0)
        chainloader +1
        boot. boot
    }
Reply


Messages In This Thread
RE: Boot from Ventoy USB-Drive to boot a LOCAL DRIVE - by nguyen ha thai trong - 04-05-2024, 04:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)