diff --git a/ecleankernel/file.py b/ecleankernel/file.py index a158c70..6acee52 100644 --- a/ecleankernel/file.py +++ b/ecleankernel/file.py @@ -6,6 +6,7 @@ import enum import errno import importlib +import logging import os import shutil import struct @@ -247,16 +248,29 @@ def read_version_from_efi(self, if len(buf) != 40: raise UnrecognizedKernelError( f"PE file {self.path}: EOF in section table!") - if buf[:8] == b".linux\0\0": - offset = struct.unpack_from(" str: