From 2420251b286eeb39b22818d849144b9e9f0d6f1a Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 25 Apr 2020 18:48:48 +0200 Subject: [PATCH] Replace link with copy because vfat can handle links. --- scripts/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index 88f8f50..a121f90 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -185,8 +185,8 @@ install_kernel_bios() { kernel_file="$(find "/boot" -name "vmlinuz-*" -printf '%f\n' | sort -V | tail -n 1)" \ || die "Could not list newest kernel file" - ln -s "$kernel_file" "/boot/vmlinuz-current" \ - || die "Could create link to current kernel" + cp "/boot/$kernel_file" "/boot/vmlinuz-current" \ + || die "Could copy kernel to /boot/vmlinuz-current" # Generate initramfs generate_initramfs "/boot/initramfs.img"