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
1 changed files with 1 additions and 1 deletions

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