#!/usr/bin/env bash


# if there are modules, install them
#make modules_install

#make install

# install the kernel
install -Dm644 "$(make -s image_name)" "/boot/vmlinuz-linux-libre-custom"

# generate initramfs for the kernel. this is not needed for kernel with embedded modules, on a system that doesn't load modules (LVM/RAID/LUKS/etc.) on initialization)
#mkinitcpio -p "${NAME_KERNEL}"

# update grub
grub-mkconfig -o /boot/grub/grub.cfg
