From 6469b7e2c46eb129278deac00c9da4c0e08a94e4 Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 21 Aug 2018 22:10:02 +0200 Subject: [PATCH] manjaro-fix --- update-bootloader | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"