From b9463581243d6d05c26171989d6b0a378c304fe0 Mon Sep 17 00:00:00 2001 From: Lily Wilson Date: Sun, 9 Dec 2018 08:58:54 -0500 Subject: [PATCH] Fix Arch kernel image detection 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 47f1f40..24957b6 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1558,8 +1558,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: