Mender and efi-secure-boot on intel-corei7-64

Hi there,

as this is probably interesting for others, too, I want to add the changes in 90_mender_boot_grub.cfg that made it working for me.
The changes are inspired by the current boot-menu.inc file

which is replaced by this 90_mender_boot_grub.cfg file.
Basically, two things changed:
The mender_kernel_path is cleared in order to use the kernel in the boot partition (efi) and the grub search command helps to find the right partition without hardcoding.

--- 90_mender_boot_grub.cfg.original
+++ 90_mender_boot_grub.cfg
@@ -1,6 +1,8 @@
 maybe_drop_to_grub_prompt
 
+mender_kernel_path=""
 if [ "${drop_to_grub_prompt}" = "no" ]; then
+	search --no-floppy --label --set=root boot
     if linux "${mender_kernel_path}/${kernel_imagetype}" root="${mender_kernel_root}" ${bootargs}; then
         if test -n "${initrd_imagetype}" -a test -e "${mender_kernel_path}/${initrd_imagetype}"; then
             initrd "${mender_kernel_path}/${initrd_imagetype}"
1 Like