From a658de2f011d1a35c9492f19353ee4f4aaf3300f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 10 Jan 2018 16:27:16 +0100 Subject: [PATCH] fix(kernel): fix detection for separate /boot partitions --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index a95ce02..d7673a4 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -439,7 +439,7 @@ if [ "$opt_live" = 1 ]; then _debug "found opt_kernel=$opt_kernel in /proc/cmdline" # if we have a dedicated /boot partition, our bootloader might have just called it / # so try to prepend /boot and see if we find anything - [ -e "/boot/$opt_kernel" ] && $opt_kernel="/boot/$opt_kernel" + [ -e "/boot/$opt_kernel" ] && opt_kernel="/boot/$opt_kernel" _debug "opt_kernel is now $opt_kernel" # else, the full path is already there (most probably /boot/something) fi