GRUB menu entry to boot the .iso from hard disk (thanks to the included loopback.cfg):
menuentry "Garuda Sway ISO" {
iso_path="/boot-isos/garuda-sway-linux-zen-221019.iso"
export iso_path
search --set=root --file $iso_path
probe -u -s rootuuid $root
export rootuuid
loopback loop $iso_path
root=(loop)
configfile /boot/grub/loopback.cfg
loopback --delete loop
}
Note that the disk is GPT and the .iso is on an ext4 partition.
What for?
Well, in my case, because my laptop BIOS doesn't boot from USB and it has a faulty DVD drive.
Not so sure about general usefulness to be honest, but here it is anyway.