The problem doesn't come from the casper package. The problem is in the grub-efi-amd64-bin package (latest version tested:2.04-1ubuntu16). Actually, it's the file grubx64.efi inside this package (/usr/lib/grub/x86_64-efi/monolithic/grubx64.efi).
menuentry ".. Xubuntu .... test daily" {
set isofile="/isos/focal-desktop-amd64.iso"
search --set=root --file $isofile
loopback loop $isofile
linux (loop)/casper/vmlinuz iso-scan/filename=$isofile boot=casper noprompt quiet splash --
initrd (loop)/casper/initrd
}
The problem doesn't come from the casper package. The problem is in the grub-efi-amd64-bin package (latest version tested: 2.04-1ubuntu16) . Actually, it's the file grubx64.efi inside this package (/usr/lib/ grub/x86_ 64-efi/ monolithic/ grubx64. efi).
menuentry ".. Xubuntu .... test daily" { "/isos/ focal-desktop- amd64.iso" casper/ vmlinuz iso-scan/ filename= $isofile boot=casper noprompt quiet splash -- casper/ initrd
set isofile=
search --set=root --file $isofile
loopback loop $isofile
linux (loop)/
initrd (loop)/
}
menuentry ".. Xubuntu Default cd Menu" { "/isos/ focal-desktop- amd64.iso" loopback. cfg
iso_path=
export iso_path
search --set=root --file $iso_path
loopback loop $iso_path
root=(loop)
configfile /boot/grub/
loopback --delete loop
}
It doesn't work in 2.04 grub version. So I experienced something.
1- I downloaded the 2.02 grub-efi-amd64-bin package from here: /packages. ubuntu. com/disco- updates/ amd64/grub- efi-amd64- bin/download
https:/
2- I opened the deb package with my archive manager
3- I extracted the file: grubx64.efi grub/x86_ 64-efi/ monolithic/ )
(from /usr/lib/
4- I launched efibootmgr in a terminal to be sure where to copy it
5- I copied it in the right folder in /boot/efi EFI/xubuntu/ .
sudo cp grubx64.efi /boot/efi/
After that, both menus worked fine (in a 2.02 grub)!