LK="." [ -L boot/kernel ] && LK="$(readlink boot/kernel)" if [ "$(dirname $LK)" != "." ]; then echo "This is an efi installation" ln -sf $LK boot/kernel if [ -f boot/$LK ]; then mv boot/kernel-5.9.10-NuTyX boot/$LK 2>/dev/null ln -sf $LK boot/kernel-5.9.10-NuTyX else echo "EFI Partition not found, mount EFI Partition and re-install the kernel" fi else echo "This is a bios installation" if [ -L boot/initrd ]; then mkinitramfs 5.9.10-NuTyX ln -sf initrd-5.9.10-NuTyX boot/initrd fi ln -sf kernel-5.9.10-NuTyX boot/kernel fi