1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-06-26 15:12:08 +02:00

fix(kernel): fix detection for separate /boot partitions

This commit is contained in:
Stéphane Lesimple 2018-01-10 16:27:16 +01:00
parent 4aed5589fe
commit a658de2f01

View File

@ -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