Skip to content

Commit

Permalink
Update uefi-functions.sh
Browse files Browse the repository at this point in the history
Use /usr/*/grub*/x86_64-efi/partmap.lst
instead of /usr/lib/grub*/x86_64-efi/partmap.lst
because since openSUSE Leap 15.1 things were moved
from /usr/lib/grub2/ to /usr/share/grub2/ see
#2338 (comment)
and replaced LogWarn by LogPrint because there is no LogWarn function.
  • Loading branch information
jsmeix committed Mar 4, 2020
1 parent d7729b0 commit de9391c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions usr/share/rear/lib/uefi-functions.sh
Expand Up @@ -77,10 +77,12 @@ function build_bootx86_efi {
# At least SUSE systems use 'grub2' prefixed names for GRUB2 programs:
gprobe=grub2-probe
else
LogWarn "Neither grub-probe nor grub2-probe found"
if test /usr/lib/grub*/x86_64-efi/partmap.lst ; then
LogWarn "including all partition modules"
modules=( $(cat /usr/lib/grub*/x86_64-efi/partmap.lst) )
LogPrint "Neither grub-probe nor grub2-probe found"
# Since openSUSE Leap 15.1 things were moved from /usr/lib/grub2/ to /usr/share/grub2/
# cf. https://github.com/rear/rear/issues/2338#issuecomment-594432946
if test /usr/*/grub*/x86_64-efi/partmap.lst ; then
LogPrint "including all partition modules"
modules=( $( cat /usr/*/grub*/x86_64-efi/partmap.lst ) )
else
Error "Can not determine partition modules, ${dirs[*]} would be likely inaccessible in GRUB2"
fi
Expand Down

0 comments on commit de9391c

Please sign in to comment.