mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-19 04:22:22 +01:00
enh: speedup by not decompressing kernel on --sysfs-only
This commit is contained in:
parent
1834dd6201
commit
36bd80d75f
@ -982,6 +982,8 @@ if [ -e "$opt_kernel" ]; then
|
|||||||
if ! which readelf >/dev/null 2>&1; then
|
if ! which readelf >/dev/null 2>&1; then
|
||||||
_debug "readelf not found"
|
_debug "readelf not found"
|
||||||
vmlinux_err="missing 'readelf' tool, please install it, usually it's in the 'binutils' package"
|
vmlinux_err="missing 'readelf' tool, please install it, usually it's in the 'binutils' package"
|
||||||
|
elif [ "$opt_sysfs_only" = 1 ]; then
|
||||||
|
vmlinux_err='kernel image decompression skipped'
|
||||||
else
|
else
|
||||||
extract_vmlinux "$opt_kernel"
|
extract_vmlinux "$opt_kernel"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user