Why ReaR tool fails to create backup with error message "grub2-mkstandalone: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist." ?

Solution Verified - Updated -

Issue

  • ReaR tool fails to create backup with below error:

    GRUB2 modules to load: fat part_gpt xfs
    ERROR: Failed to make bootable EFI image of GRUB2 (error during grub2-mkstandalone of /tmp/rear.xxxx/tmp/mnt/EFI/BOOT/BOOTX64.efi)
    Some latest log messages since the last called script 250_populate_efibootimg.sh:
    mkdir: created directory '/tmp/rear.xxxx/tmp/mnt/EFI/BOOT/fonts'
    mkdir: created directory '/tmp/rear.xxxx/tmp/mnt/EFI/BOOT/locale'
    '/boot/efi/EFI/redhat/grubx64.efi' -> '/tmp/rear.xxxx/tmp/mnt/EFI/BOOT/BOOTX64.efi'
    /usr/share/rear/lib/_input-output-functions.sh: line 476: type: grub-mkstandalone: not found
    /usr/share/rear/lib/_input-output-functions.sh: line 476: type: grub-probe: not found
     grub2-mkstandalone may fail to make a bootable EFI image of GRUB2 (no /usr//grub/x86_64-efi/moddep.lst file)
    GRUB2 modules to load: fat part_gpt xfs
    grub2-mkstandalone: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
    Aborting due to an error, check /var/log/rear/rear-xxxx.log for details
    Exiting rear mkbackup (PID 2302293) and its descendant processes ...
    Running exit tasks
    You should also rm -Rf --one-file-system /tmp/rear.xxxx
    Terminated
    

Environment

  • Red Hat Enterprise Linux 8 and 9
  • UEFI environment
  • ReaR

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content