It is already possible with the "iso-scan/filename" cheatcode. Here is an example grub2 menu entry:
menuentry "Ubuntu" { loopback loop /boot/isos/ubuntu.iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/isos/ubuntu.iso quiet splash noprompt -- initrd (loop)/casper/initrd.gz }
It is already possible with the "iso-scan/filename" cheatcode. Here is an example grub2 menu entry:
menuentry "Ubuntu" { ubuntu. iso casper/ vmlinuz boot=casper iso-scan/ filename= /boot/isos/ ubuntu. iso quiet splash noprompt -- casper/ initrd. gz
loopback loop /boot/isos/
linux (loop)/
initrd (loop)/
}