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

feat: Add Clear Linux Distro (#244)

Add path of Clear Linux kernel binary and kernel config file.
This commit is contained in:
Luis Ponce 2018-09-15 08:51:49 -05:00 committed by Stéphane Lesimple
parent 8f31634df6
commit b48b2177b7

View File

@ -1473,6 +1473,9 @@ if [ "$opt_live" = 1 ]; then
[ -e "/run/booted-system/kernel" ] && opt_kernel="/run/booted-system/kernel"
# systemd kernel-install:
[ -e "/etc/machine-id" ] && [ -e "/boot/$(cat /etc/machine-id)/$(uname -r)/linux" ] && opt_kernel="/boot/$(cat /etc/machine-id)/$(uname -r)/linux"
# Clear Linux:
str_uname=$(uname -r)
[ -e "/lib/kernel" ] && opt_kernel="/lib/kernel/org.clearlinux.${str_uname##*.}.${str_uname%.*}"
fi
# system.map
@ -1482,6 +1485,8 @@ if [ "$opt_live" = 1 ]; then
opt_map="/lib/modules/$(uname -r)/System.map"
elif [ -e "/boot/System.map-$(uname -r)" ] ; then
opt_map="/boot/System.map-$(uname -r)"
elif [ -e "/lib/kernel/config-$(uname -r)" ]; then
opt_config="/lib/kernel/config-$(uname -r)"
fi
# config