From 904a83c6751bbc57c1742b18e16cabf97c8bd5a0 Mon Sep 17 00:00:00 2001 From: Lily Wilson Date: Mon, 10 Dec 2018 13:36:58 -0500 Subject: [PATCH] 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. --- spectre-meltdown-checker.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 6d27d95..c8f331a 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -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: