From 36bd80d75fd3217dde94b65598fd5838948882cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 2 Feb 2018 11:13:31 +0100 Subject: [PATCH] enh: speedup by not decompressing kernel on --sysfs-only --- spectre-meltdown-checker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 354afec..b0b4e39 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -982,6 +982,8 @@ if [ -e "$opt_kernel" ]; then if ! which readelf >/dev/null 2>&1; then _debug "readelf not found" 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 extract_vmlinux "$opt_kernel" fi