I want to add MemTest86 to Ubuntu 20.04 grub menu. I followed Official MemTest86 guide, but they presume that the system EFI partition is on the SATA drive (/dev/sdX). I have NVME drive for the system partitions, so below entry does not work. If I choose 'MemTest86' entry in grub menu it can't find the place. How I should modify /etc/grub.d/40_custom?
df | grep efi
#/dev/nvme0n1p1 98304 30865 67439 32% /boot/efi
sudo nano /etc/grub.d/40_custom
menuentry 'MemTest86' {
insmod part_gpt
insmod fat
set root='nvme0n1,gpt1'
chainloader ($root)/EFI/memtest86/BOOTX64.efi
}