"rear mkbackup" fails with "Error occurred during grub2-mkimage of BOOTX64.efi"

Solution Verified - Updated -

Issue

  • When using ReaR command rear mkbackup or rear mkrescue to create the backup or rescue image, command fails with the following error

    '/boot/efi/EFI/redhat/grubx64.efi' -> '/tmp/rear.5DkDRILzWkZLt8I/tmp/mnt/EFI/BOOT/BOOTX64.efi'
    grub2-mkimage: error: cannot open `/usr/lib/grub/x86_64-efi/moddep.lst': No such file or directory.
    2017-10-11 09:21:23 ERROR: Error occurred during grub2-mkimage of BOOTX64.efi
    ==== Stack trace ====
    Trace 0: /usr/sbin/rear:504 main
    Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:22 WORKFLOW_mkbackup
    Trace 2: /usr/share/rear/lib/framework-functions.sh:85 SourceStage
    Trace 3: /usr/share/rear/lib/framework-functions.sh:45 Source
    Trace 4: /usr/share/rear/output/ISO/Linux-i386/250_populate_efibootimg.sh:69 source
    Trace 5: /usr/share/rear/lib/uefi-functions.sh:50 build_bootx86_efi
    Trace 6: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
    Message: Error occurred during grub2-mkimage of BOOTX64.efi
    == End stack trace ==
    2017-10-11 09:21:23 Running exit tasks.
    removed directory: '/tmp/rear.5DkDRILzWkZLt8I/outputfs'
    2017-10-11 09:21:23 Finished in 184 seconds
    2017-10-11 09:21:23 Removing build area /tmp/rear.5DkDRILzWkZLt8I
    removed directory: '/tmp/rear.5DkDRILzWkZLt8I'
    2017-10-11 09:21:23 End of program reached
    

Environment

  • Red Hat Enterprise Linux 7
  • rear

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In