ventoy / vdiskchain

chainload to linux vdisk from other bootloaders
53 stars 9 forks source link

Grub2Fail Grub2 Not Compatible #17

Open weskerty opened 3 months ago

weskerty commented 3 months ago

grub> chainloader /vdiskchain vdisk=/MiLinux/MiLinux.vtoy
/EndEntire file path: /ACPI (a0341d0,0)/PCI (0,d)/Sata(0,ffff,0)/HD (3,3a800, a7c046e, f1b36cfaf871cf4e,2,2)/File()/File(vdiskchain)
/EndEntire

Has it happened to anyone else? Do you know how to solve it? I can't get it to work.

devvratmiglani commented 3 months ago

I guess full path of vdiskchain is required, use it as ($root)/vdiskchain where root is UEFI partition booted

Final

set vdisk=/Mint/mint.vtoy #full path no label chainloader ($root)/vdiskchain vdisk=/Mint/mint.vtoy

weskerty commented 3 months ago

I guess full path of vdiskchain is required, use it as ($root)/vdiskchain where root is UEFI partition booted

I tried using this from a previous issue and the EFI fails with the same error mentioned above for the UEFI version.

menuentry 'Linux Mint VDI' --class icon-mint {
    set VTOY=/MiLinux/MiLinux.vtoy

    if [ "$grub_platform" = "efi" ]; then
        search --no-floppy --file --set=root /MiLinux/vdisk.efi
        if [ -e ($root)/MiLinux/vdisk.efi ]; then
            chainloader ($root)/MiLinux/vdisk.efi
            boot
        else
            echo "El Modulo vdisk.efi No se Encuentra. Es Posible que la Carpeta /MiLinux/ No Exista"
            sleep 5
        fi
    else
        search --no-floppy --file --set=root /MiLinux/ipxe.krn
        if [ -e ($root)/MiLinux/ipxe.krn ]; then
            linux16 ($root)/MiLinux/ipxe.krn vdisk=$VTOY
            initrd16 ($root)/MiLinux/vdisk.efi
            boot
        else
            echo "El Modulo ipxe.krn No se Encuentra. Es Posible que la Carpeta /MiLinux/ No Exista"
            sleep 5
        fi
    fi
}

I previously tried --force as the documentation said but it didn't work. chainloader --force /vdisk.efi vdisk=/ and chainloader [--force] /vdisk.efi vdisk=/

Is this supposed to be. true?