[rear-devel] [rear/rear] 946580: uefi: Search for Grub2 modules in /usr/lib/grub*/x...

Renaud Métrich noreply at github.com
Sat Aug 17 09:26:32 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 946580c40b0e7025e0a4e4ecd93c5ae6b191b2c7
      https://github.com/rear/rear/commit/946580c40b0e7025e0a4e4ecd93c5ae6b191b2c7
  Author: Renaud Métrich <rmetrich at redhat.com>
  Date:   2019-08-02 (Fri, 02 Aug 2019)

  Changed paths:
    M usr/share/rear/lib/uefi-functions.sh

  Log Message:
  -----------
  uefi: Search for Grub2 modules in /usr/lib/grub*/x86_64-efi and not in /boot.

On Fedora and RHEL systems, Grub2 UEFI modules live in
/usr/lib/grub*/x86_64-efi, not /boot, unless grub2-install is executed,
but executing this tool is not needed with UEFI.

On SuSE systems, Grub2 UEFI modules also live in
/usr/lib/grub*/x86_64-efi, but there is also a copy in /boot, so it's
not needed searching in /boot at all.

Additionally, only UEFI modules should be looked for, so /boot cannot be
searched but only /boot/grub2/x86_64-efi (similarly
/usr/lib/grub*/x86_64-efi, not just /usr/lib/grub*), otherwise we could
get some false positives on dual boot systems (UEFI + Legacy), since
modules for Legacy will also match, which is wrong.

Signed-off-by: Renaud Métrich <rmetrich at redhat.com>


  Commit: b7a75c3a39ee8cf0402f83da7fca8df231c7b979
      https://github.com/rear/rear/commit/b7a75c3a39ee8cf0402f83da7fca8df231c7b979
  Author: Renaud Métrich <1163635+rmetrich at users.noreply.github.com>
  Date:   2019-08-17 (Sat, 17 Aug 2019)

  Changed paths:
    M usr/share/rear/lib/uefi-functions.sh

  Log Message:
  -----------
  Merge pull request #2199 from rmetrich/RH_UEFI

uefi: Search for Grub2 modules in /usr/lib/grub*/x86_64-efi and not in /boot


Compare: https://github.com/rear/rear/compare/4a45ba933963...b7a75c3a39ee


More information about the rear-devel mailing list