Blame SOURCES/rear-bz1492177-warning.patch

e58bff
diff --git a/usr/share/rear/output/ISO/Linux-i386/249_check_rhel_grub2_efi_package.sh b/usr/share/rear/output/ISO/Linux-i386/249_check_rhel_grub2_efi_package.sh
e58bff
new file mode 100644
e58bff
index 00000000..4c4ded08
e58bff
--- /dev/null
e58bff
+++ b/usr/share/rear/output/ISO/Linux-i386/249_check_rhel_grub2_efi_package.sh
e58bff
@@ -0,0 +1,9 @@
e58bff
+# 249_check_rhel_grub2_efi_package.sh
e58bff
+
e58bff
+is_true $USING_UEFI_BOOTLOADER || return    # empty or 0 means NO UEFI
e58bff
+
e58bff
+(
e58bff
+    VERBOSE=1
e58bff
+    test -r /usr/lib/grub/x86_64-efi/moddep.lst
e58bff
+    PrintIfError "WARNING: /usr/lib/grub/x86_64-efi/moddep.lst not found, grub2-mkimage will likely fail. Please install the grub2-efi-x64-modules package to fix this."
e58bff
+)