Refuse to run if framebuffer or dri devices are present

The simpledrm driver, introduced in kernel 5.14,
can replace efifb to provide the efi framebuffer.

This fixes a bug on Fedora 36 (first version to use simpledrm driver):

v2: check for framebuffer or dri devices instead of efi framebuffer interface.

Reviewed-by: Adam Jackson <>
Reviewed-by: Javier Martinez Canillas <>
Signed-off-by: Jocelyn Falempe <>
6 jobs for fix_simpledrm_uefi in 1 minute and 13 seconds (queued for 5 seconds)