grubenv file not found by SWUpdate -> how to tell swupdate where to look?

251 views
Skip to first unread message

Howard Egan

unread,
Oct 29, 2020, 11:19:07 AM10/29/20
to swupdate
Hi:

Making some good progress, but stuck on this one bit.   At the end of

swupdate -c -v  -e "stable,usb2" -i update.swu

the grubenv is not found with this error:

ERROR bootloader/grub.c : grubenv_open : 22 : Failed to open grubenv file: /boot/efi/EFI/BOOT/grub/grubenv

I thought the efi/EFI bit in the path might be a clue something is wrong.

The file is located at /boot/EFI/Boot/grub/grubenv.   Is there a way to tell swupdate where to look for this file? 

I looked in the command line options, hopefully I didn't just miss it.

Many Thanks
Howard

Howard Egan

unread,
Oct 29, 2020, 11:52:55 AM10/29/20
to swupdate
Actually I'm seeing it set in git/bootloader/Config.in.   

Is there a way to override this in Yocto so I don't have to modify code in what is pulled from git?

Howard Egan

unread,
Oct 29, 2020, 1:30:43 PM10/29/20
to swupdate
Also I see the -f cmdline option for SWUpdate, but not seeing swupdate.cfg anywhere.   From reading it sounds like it should be in /etc.

Should I expect to see that in my build?  

haha, stupid sidenote, I tried to create grubenv in the expected location (/boot/efi/EFI/BOOT/grub), but found my boot partition was case insensitive.  Moral of story, don't use rufus, use dd. 

Howard Egan

unread,
Oct 30, 2020, 11:08:22 AM10/30/20
to swupdate
I missed this in menuconfig swupdate.  The default location for grubenv was right in front of me.  Problem solved.
Reply all
Reply to author
Forward
0 new messages