1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-07 06:33:38 +01:00

fix: extract_kernel: don't overwrite kernel_err if already set

Fixes #395
This commit is contained in:
Stéphane Lesimple 2021-03-24 21:45:08 +01:00
parent 08e30e156d
commit 0ea21d09bd

View File

@ -1396,7 +1396,10 @@ extract_kernel()
try_decompress '(\265/\375' xxy unzstd '' zstd "$1" "$mode" "$pass" && return 0
done
done
# kernel_err might already have been populated by try_decompress() if we're missing one of the tools
if [ -z "$kernel_err" ]; then
kernel_err="kernel compression format is unknown or image is invalid"
fi
_verbose "Couldn't extract the kernel image ($kernel_err), accuracy might be reduced"
return 1
}