mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-05 02:38:04 +01:00
feat: Add Clear Linux Distro (#244)
Add path of Clear Linux kernel binary and kernel config file.
This commit is contained in:
parent
8f31634df6
commit
b48b2177b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user