in validations/image_validator/system.py [0:0]
def is_efi_booted(): sysinfo["isEfiBooted"] = os.path.isdir("/sys/firmware/efi")