mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-19 04:22:22 +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:
parent
906f54cf9d
commit
904a83c675
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user