Bug ID 1118363
Summary shim-install is broken
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Bootloader
Assignee jsrain@suse.com
Reporter nwr10cst-oslnx@yahoo.com
QA Contact jsrain@suse.com
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Firefox/60.0
Build Identifier: 

I recently installed Tumbleweed on an external USB drive).  I installed using
"grub2" and booting from the MBR.  But I wanted to also be able to boot this
external drive from a UEFI system.

Here's what I attempted:

# shim-install --no-nvram --removable
copying /usr/lib64/efi/grub.efi to /boot/efi/EFI/boot/grub.efi
Installing for i386-pc platform.
/usr/sbin/grub2-install: error: install device isn't specified.

Evidently, "shim-install" is internally calling "grub2-install".  But it is
calling it the wrong way.  It should be calling with "--target=x86_64-efi"

To work around the problem, I manually did what shim-install should have done:

# grub2-install --target=x86_64-efi --no-nvram --removable
Installing for x86_64-efi platform.
Installation finished. No error reported.

I then repeated the same "shim-install" command as used earlier, with the same
error message.  But the combination seems to have done what I wanted.  I have
successfully booted from that external drive on both a legacy BIOS system and
on a UEFI system.

Reproducible: Always


You are receiving this mail because: