1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-22 12:23:36 +01:00

Fix Arch kernel image detection (#268)

currently, the script tries to use the wrong kernel image on Arch if an
alternative kernel (hardened, zen, or lts) is in use. Fortunately, all
the Arch kernel packages place a symlink to the kernel image as /usr/lib/modules/$(uname -r)/vmlinuz, so simply removing the guess for Arch fixes the issue.
This commit is contained in:
Lily Wilson 2018-12-10 13:36:58 -05:00 committed by Stéphane Lesimple
parent 906f54cf9d
commit 904a83c675

View File

@ -1563,8 +1563,6 @@ if [ "$opt_live" = 1 ]; then
[ -e "/lib/modules/$(uname -r)/vmlinuz" ] && opt_kernel="/lib/modules/$(uname -r)/vmlinuz"
# Slackare:
[ -e "/boot/vmlinuz" ] && opt_kernel="/boot/vmlinuz"
# Arch:
[ -e "/boot/vmlinuz-linux" ] && opt_kernel="/boot/vmlinuz-linux"
# Arch aarch64:
[ -e "/boot/Image" ] && opt_kernel="/boot/Image"
# Arch armv5/armv7: