#2783 Issue closed
: errors out due to missing grub module¶
Labels: support / question
, fixed / solved / done
Hardcore-fs opened issue at 2022-04-01 01:54:¶
Relax-and-Recover 2.6 / 2020-06-17
NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
intel 64
/usr/sbin/rear -V
errors out during build due to missing grub modules
Testing that the recovery system in /tmp/rear.3MiKZ30SemroQsr/rootfs contains a usable system
Creating recovery/rescue system initramfs/initrd initrd.cgz with gzip default compression
Created initrd.cgz with gzip default compression (432490167 bytes) in 21 seconds
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: ext2 fat part_gpt
ERROR: Failed to make bootable EFI image of GRUB2 (error during grub2-mkstandalone of /tmp/rear.3MiKZ30SemroQsr/tmp/mnt/EFI/BOOT/BOOTX64.efi)
Some latest log messages since the last called script 250_populate_efibootimg.sh:
mkdir: created directory '/tmp/rear.3MiKZ30SemroQsr/tmp/mnt/EFI/BOOT/fonts'
mkdir: created directory '/tmp/rear.3MiKZ30SemroQsr/tmp/mnt/EFI/BOOT/locale'
'/boot/efi/EFI/rocky/grubx64.efi' -> '/tmp/rear.3MiKZ30SemroQsr/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
2022-04-01 09:49:33.448604658 grub2-mkstandalone may fail to make a bootable EFI image of GRUB2 (no /usr/*/grub*/x86_64-efi/moddep.lst file)
2022-04-01 09:49:33.449422275 GRUB2 modules to load: ext2 fat part_gpt
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-Rust-02.log for details
Exiting rear mkbackup (PID 96673) and its descendant processes ...
Running exit tasks
pcahyna commented at 2022-04-01 09:32:¶
Sorry, it is a bit unfortunate, ReaR needs the grub2-efi-x64-modules
package, but only on EFI machines, therefore the package does not bring
it in automatically.
A trick, if you know what files are missing (the messages mention that
ReaR needs /usr/*/grub*/x86_64-efi/moddep.lst
and
/usr/lib/grub/x86_64-efi/modinfo.sh
), you can determine which package
you need to install using yum repoquery:
yum repoquery --whatprovides /usr/lib/grub/x86_64-efi/modinfo.sh
or
yum repoquery --whatprovides '/usr/*/grub*/x86_64-efi/moddep.lst'
Both commands should print grub2-efi-x64-modules-1:2.02-122.el8.noarch
(or something similar).
Hardcore-fs commented at 2022-04-05 04:06:¶
yep that fixed it
jsmeix commented at 2022-04-05 05:46:¶
@Hardcore-fs
thank you for the feedback that
https://github.com/rear/rear/issues/2783#issuecomment-1085678921
actually makes it work also for you.
There are so many Linux distributions each one with its own special
things
that it is impossible for us to imagine how ReaR behaves on each of
them
so we appreciate explicit feedback.
[Export of Github issue for rear/rear.]