arch-vanilla-support

This commit is contained in:
simono41 2018-05-10 03:25:49 +02:00
parent 59da872c31
commit fae91bf4bf

View file

@ -2,13 +2,17 @@
set -ex set -ex
kernel1="$(find /boot/ -name "initramfs*$(uname -m).img")" kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)"
linuz1="$(find /boot/ -name "vmlinuz*$(uname -m)")" linuz1="$(find /boot/ -name "vmlinuz*")"
kernel="${kernel1#/*/}" kernel="${kernel1#/*/}"
linuz="${linuz1#/*/}" linuz="${linuz1#/*/}"
kernelback1="$(find /boot/ -name "initramfs*$(uname -m)-fallback.img")" kernelback1="$(find /boot/ -name "initramfs*-fallback.img")"
kernelback="${kernelback1#/*/}" kernelback="${kernelback1#/*/}"
echo "Kernel: ${kernel}"
echo "Linuz: ${linuz}"
echo "Kernel-fallback: ${kernelback}"
sed "s|%LINUZ%|${linuz}|g; sed "s|%LINUZ%|${linuz}|g;
s|%KERNEL%|${kernel}|g" /boot/arch-uefi.conf.example > /boot/loader/entries/arch-uefi.conf s|%KERNEL%|${kernel}|g" /boot/arch-uefi.conf.example > /boot/loader/entries/arch-uefi.conf