Hello. I used followed code in my 40_custom config file:
menuentry “centos9steam-live-xfce” {
iso_path=“/iso/centos/CentOS-Stream-Image-XFCE-Live.x86_64-9-202410040625.iso”
export iso_path
search --set=root --file $iso_path
loopback loop $iso_path
root=(loop)
configfile /boot/grub/loopback.cfg
loopback --delete loop
}
menuentry “centos9steam-live-xfce 2” {
set isofile=“/iso/centos/CentOS-Stream-Image-XFCE-Live.x86_64-9-202410040625.iso”
search --no-floppy -f --set=root $isofile
probe -u $root --set=abc
set pqr=“/dev/disk/by-uuid/$abc”
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux root=live:CDLABEL=CentOS_AltImage rd.live.image rd.live.check iso-scan/filename=${isofile}
initrd (loop)/boot/x86_64/loader/initrd
}
and also i tried other codes, but system stuck at phase “/dev/gpt-auto-root” or “mounted filesystem, loop0: detected …”. How to fix this?