From fae91bf4bf88acf4679991de199fda1227712ceb Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 10 May 2018 03:25:49 +0200 Subject: [PATCH] arch-vanilla-support --- update-bootloader | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/update-bootloader b/update-bootloader index c02c206..91b8a83 100755 --- a/update-bootloader +++ b/update-bootloader @@ -2,13 +2,17 @@ set -ex -kernel1="$(find /boot/ -name "initramfs*$(uname -m).img")" -linuz1="$(find /boot/ -name "vmlinuz*$(uname -m)")" +kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" +linuz1="$(find /boot/ -name "vmlinuz*")" kernel="${kernel1#/*/}" linuz="${linuz1#/*/}" -kernelback1="$(find /boot/ -name "initramfs*$(uname -m)-fallback.img")" +kernelback1="$(find /boot/ -name "initramfs*-fallback.img")" kernelback="${kernelback1#/*/}" +echo "Kernel: ${kernel}" +echo "Linuz: ${linuz}" +echo "Kernel-fallback: ${kernelback}" + sed "s|%LINUZ%|${linuz}|g; s|%KERNEL%|${kernel}|g" /boot/arch-uefi.conf.example > /boot/loader/entries/arch-uefi.conf