First, I'm sorry for my poor English. I'm a Windows user and new with grub2 also Linux. So I came here to get some advice from you.
I'm running windows 10 UEFI and now I want to use grub2 is main loader to chainload Windows also chainload to Linux. I use bootx64.efi from Ubuntu install ISO and replace bootx64.efi (windows) by it. grubx64.efi and grub.cfg (let say grub1.cfg) put on EFI partition. i use grub1.cfg to call another grub.cfg (let say grub2.cfg) put on NTFS partition. But after restart computer, grub1.cfg can not find grub2.cfg.
After some work, I found that if I use bootx64.efi from clonezilla then it work fine.
But I would like to use bootx64.efi from Ubuntu because it support
if [ -e "..."]; then command.
Does any one can give me some hint. Tks