Here is an example grub2 menu display output screen...
and here is the grub2 menu that was used...
This menu sets iso_path to the path of the ISO file we wish to boot.
and here is the grub2 menu that was used...
menuentry "Arch Linux with Parameters" {set iso_path="/_ISO/LINUX/archlinux-2024.12.01-x86_64.iso"search --no-floppy -f --set=root $iso_pathprobe -u $root --set=archiso_img_dev_uuidloopback loop $iso_pathlsechols (loop)/echols /echols /_ISO/LINUX/echoecho archiso_img_dev_uuid=${archiso_img_dev_uuid} iso_path=${iso_path} root=${root}readlinux (loop)/arch/boot/x86_64/vmlinuz-linux archisobasedir=arch img_dev=UUID=${archiso_img_dev_uuid} img_loop=${iso_path}initrd (loop)/arch/boot/x86_64/initramfs-linux.imgread}
This menu sets iso_path to the path of the ISO file we wish to boot.