Setting EFI variables for Linux in Windows

My Lenovo Yoga 720 does not allow me to boot Linux in UEFI only mode yet grub is not able to set EFI variables in mixed mode.

So in order to get Grub added to UEFI you have to do that in Windows. The following will get you go:

bcdedit /enum firmware
bcdedit /copy "{bootmgr}" /d "<NameOfLinux>"
bcdedit /set "{<guid>}" path \EFI\<NameofLinux>\grubx64.efi
bcdedit /set "{fwbootmgr}" displayorder "{<guid>}" /addfirst

Replace <guid> with the Information obtained from calling bcdedit /enum firmware.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s