mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-12-23 04:43:37 +01:00
Fix misdetection of files under Clear Linux (#264)
This commit is contained in:
parent
c705afe764
commit
4a6fa070a4
@ -1593,8 +1593,8 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
opt_map="/lib/modules/$(uname -r)/System.map"
|
opt_map="/lib/modules/$(uname -r)/System.map"
|
||||||
elif [ -e "/boot/System.map-$(uname -r)" ] ; then
|
elif [ -e "/boot/System.map-$(uname -r)" ] ; then
|
||||||
opt_map="/boot/System.map-$(uname -r)"
|
opt_map="/boot/System.map-$(uname -r)"
|
||||||
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
|
elif [ -e "/lib/kernel/System.map-$(uname -r)" ]; then
|
||||||
opt_config="/lib/kernel/config-$(uname -r)"
|
opt_map="/lib/kernel/System.map-$(uname -r)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# config
|
# config
|
||||||
@ -1609,6 +1609,8 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
opt_config="/boot/config-$(uname -r)"
|
opt_config="/boot/config-$(uname -r)"
|
||||||
elif [ -e "/etc/kernels/kernel-config-$(uname -m)-$(uname -r)" ]; then
|
elif [ -e "/etc/kernels/kernel-config-$(uname -m)-$(uname -r)" ]; then
|
||||||
opt_config="/etc/kernels/kernel-config-$(uname -m)-$(uname -r)"
|
opt_config="/etc/kernels/kernel-config-$(uname -m)-$(uname -r)"
|
||||||
|
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
|
||||||
|
opt_config="/lib/kernel/config-$(uname -r)"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_info "Checking for vulnerabilities against specified kernel"
|
_info "Checking for vulnerabilities against specified kernel"
|
||||||
|
Loading…
Reference in New Issue
Block a user