Bug 991187

Summary: shim-install keeping silent about obvious errors
Product: [openSUSE] openSUSE Tumbleweed Reporter: Libor Pechacek <lpechacek>
Component: BasesystemAssignee: Gary Ching-Pang Lin <glin>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: mchang
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Libor Pechacek 2016-07-29 06:10:51 UTC
In my custom installation shim-install failed during installation.  The only information installer relayed was exit code 1.  After re-running shim-install on the installed system I got the same result.

fmn:~ # shim-install --config-file=/boot/grub2/grub.cfg 
fmn:~ # echo $?
1

Running shim-install with Bash debugging enabled has shown the root cause.

fmn:~ # bash -x /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg 
...
+ bootdir=/boot
+ '[' -n '' ']'
+ test -n ''
+ test -d /boot/efi
+ test -d /boot/EFI
+ test -n ''
+ test -n ''
+ test -n ''
+ exit 1

I forgot to instruct the installer to mount EFI partition during installation.  I would welcome a more verbose message from shim-install in this case for the sake of reduced debugging time.
Comment 2 Bernhard Wiedemann 2016-10-13 16:00:51 UTC
This is an autogenerated message for OBS integration:
This bug (991187) was mentioned in
https://build.opensuse.org/request/show/434560 42.2 / shim
Comment 3 Gary Ching-Pang Lin 2016-12-12 07:08:52 UTC
The new "shim-leap" package was checked into Tumbleweed. Close this bug.
Comment 4 Swamp Workflow Management 2019-05-14 10:13:57 UTC
This is an autogenerated message for OBS integration:
This bug (991187) was mentioned in
https://build.opensuse.org/request/show/702795 Factory / shim