Blame SOURCES/0001-Refuse-to-run-on-UEFI-machines-running-older-kernels.patch

101909
From 53c7796e8ddc6aaaef79df8c852c0d9d151a8559 Mon Sep 17 00:00:00 2001
101909
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
101909
Date: Fri, 10 May 2019 08:40:05 +0200
101909
Subject: [PATCH] Refuse to run on UEFI machines running older kernels
101909
101909
Prior to kernel v3.12, the efi framebuffer driver was named "efifb".
101909
This cause problem on RHEL 7 as the base kernel is 3.10.
101909
101909
"efi-framebuffer.0" was added by commit 2645e0aa for that reason
101909
(don't run on UEFI machine).
101909
The change from "efifb" to "efi-framebuffer" was done with commit
101909
e6816a8 in the kernel
101909
101909
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
101909
[ofourdan: updated commit message with commit references]
101909
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
101909
---
101909
 src/vesa.c | 3 ++-
101909
 1 file changed, 2 insertions(+), 1 deletion(-)
101909
101909
diff --git a/src/vesa.c b/src/vesa.c
101909
index 7f11175..0c1d003 100644
101909
--- a/src/vesa.c
101909
+++ b/src/vesa.c
101909
@@ -452,7 +452,8 @@ VESAPciProbe(DriverPtr drv, int entity_num, struct pci_device *dev,
101909
     ScrnInfoPtr pScrn;
101909
 
101909
 #ifdef __linux__
101909
-    if (access("/sys/devices/platform/efi-framebuffer.0", F_OK) == 0) {
101909
+    if (access("/sys/devices/platform/efi-framebuffer.0", F_OK) == 0 ||
101909
+        access("/sys/devices/platform/efifb.0", F_OK) == 0) {
101909
         ErrorF("vesa: Refusing to run on UEFI\n");
101909
         return FALSE;
101909
     }
101909
-- 
101909
2.21.0
101909