How to boot a Fedora ~30+ ISO from grub

Tired of searching for flash drives to write the Fedora ISO to? Look no further! A multi-purpose flash drive with grub installed can boot the Fedora ISO directly, with the following configuration in grub.cfg:

menuentry "Fedora Workstation 31" {
	set isofile="/images/Fedora-Workstation-Live-x86_64-31-1.9.iso"
    
	echo "Setting up loopback"
	loopback loop "${isofile}" 
	probe -l loop --set=isolabel
	echo "ISO Label is ${isolabel}"
	
	echo "Booting...."
	linux (loop)/isolinux/vmlinuz iso-scan/filename="${isofile}" root=live:CDLABEL=$isolabel  rd.live.image
	initrd (loop)/isolinux/initrd.img
}

…blog post incoming soon with more details on how to install grub to a flash drive.