diff --git a/imgutil/imgutil b/imgutil/imgutil index 427fd457..1ff7f570 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -671,6 +671,11 @@ def version_sort(iterable): def get_kern_version(filename): with open(filename, 'rb') as kernfile: + checkgzip = kernfile.read(2) + if checkgzip == b'\x1f\x8b': + # gzipped... this would probably be aarch64 + # assume the filename has the version embedded + return os.path.basename(filename).replace('vmlinuz-', '') kernfile.seek(0x20e) offset = struct.unpack('