Code:
# ISO file must be located at /data/krd.iso
menuentry "Kaspersky Rescue Disk 2018 (PTN 3)" {
set iso_path="/data/krd.iso"
set lang="en"
set root=(${vtoydev},3)
# en=English; ru=Russian
# if [ x$lang != xru ]; then set lang=en; fi
# booting ${iso_path}
search -s root -f ${iso_path}
loopback loop ${iso_path}
if cpuid -l; then set _kernel="k-x86_64"; else set _kernel_="k-x86"; fi
linux (loop)/boot/grub/${_kernel} net.ifnames=0 lang=${lang} dostartx isoloop=krd.iso
initrd (loop)/boot/grub/initrd.xz
}
This works for me from VBOX. Seems OK with both NTFS and FAT32 formatted partitions (not tried exFAT). Tested under VBOX+Win10, UEFI64 and Legacy BIOS VMs.
Search line can be deleted.
Please stop cross-posting. This thread is about backgrounds not booting ISOs !