diff --git a/update-bootloader b/update-bootloader index 91b8a83..62dd924 100755 --- a/update-bootloader +++ b/update-bootloader @@ -2,13 +2,16 @@ set -ex + kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" -linuz1="$(find /boot/ -name "vmlinuz*")" +linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f1)" kernel="${kernel1#/*/}" linuz="${linuz1#/*/}" + kernelback1="$(find /boot/ -name "initramfs*-fallback.img")" kernelback="${kernelback1#/*/}" + echo "Kernel: ${kernel}" echo "Linuz: ${linuz}" echo "Kernel-fallback: ${kernelback}"