Can't find command linuxefi or initrdefi

Trying to install rocky 9 linux using PXE boot option in the ARM64 server. Everything works well but it is not recognizing the linuxefi and initrdefi command in grub.cfg file. But if i use the linux and initrd command then it works.

Error During Bootup:

error: ../../grub-core/script/function.c:119:can't find command `linuxefi'.
error: ../../grub-core/script/function.c:119:can't find command `initrdefi'.

I am using following grub binary grubaa64.efi

Sample grub.cfg…

set default=0
set timeout=60
menuentry ‘Install Rocky9’ {
linuxefi images/rocky9/vmlinuz inst.ks=http://192.168.1.10/kickstarts/ks.cfg inst.stage2=http:// 192.168.1.10/rocky9/ISO quiet
initrdefi images/rocky9/initrd.img
}

1 Like