Blame SOURCES/rear-bz1492177-warning.patch

c3cf38
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
c3cf38
new file mode 100644
c3cf38
index 00000000..4c4ded08
c3cf38
--- /dev/null
c3cf38
+++ b/usr/share/rear/output/ISO/Linux-i386/249_check_rhel_grub2_efi_package.sh
c3cf38
@@ -0,0 +1,9 @@
c3cf38
+# 249_check_rhel_grub2_efi_package.sh
c3cf38
+
c3cf38
+is_true $USING_UEFI_BOOTLOADER || return    # empty or 0 means NO UEFI
c3cf38
+
c3cf38
+(
c3cf38
+    VERBOSE=1
c3cf38
+    test -r /usr/lib/grub/x86_64-efi/moddep.lst
c3cf38
+    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."
c3cf38
+)