1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-22 04:13:38 +01:00

feat: add zstd kernel decompression (#370)

This commit is contained in:
Stéphane Lesimple 2020-09-14 21:29:33 +02:00
parent 1f75f01630
commit e41e311a7f

View File

@ -1376,6 +1376,7 @@ extract_kernel()
try_decompress '\135\0\0\0' xxx unlzma '' xz-utils "$1" "$mode" "$pass" && return 0
try_decompress '\211\114\132' xy 'lzop' '-d' lzop "$1" "$mode" "$pass" && return 0
try_decompress '\177ELF' xxy 'cat' '' cat "$1" "$mode" "$pass" && return 0
try_decompress '(\265/\375' xxy unzstd '' zstd "$1" "$mode" "$pass" && return 0
done
done
kernel_err="kernel compression format is unknown or image is invalid"