Commit 53c7796e authored by Benjamin Tissoires's avatar Benjamin Tissoires

Refuse to run on UEFI machines running older kernels

Prior to kernel v3.12, the efi framebuffer driver was named "efifb".
This cause problem on RHEL 7 as the base kernel is 3.10.

"efi-framebuffer.0" was added by commit 2645e0aa for that reason
(don't run on UEFI machine).
The change from "efifb" to "efi-framebuffer" was done with commit
e6816a8 in the kernel
Signed-off-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
[ofourdan: updated commit message with commit references]
Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent 634dae74
......@@ -452,7 +452,8 @@ VESAPciProbe(DriverPtr drv, int entity_num, struct pci_device *dev,
ScrnInfoPtr pScrn;
#ifdef __linux__
if (access("/sys/devices/platform/efi-framebuffer.0", F_OK) == 0) {
if (access("/sys/devices/platform/efi-framebuffer.0", F_OK) == 0 ||
access("/sys/devices/platform/efifb.0", F_OK) == 0) {
ErrorF("vesa: Refusing to run on UEFI\n");
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment