diff --git a/kerninst b/kerninst index eb20c7ba83f8db4155d4385594ba3fe5a03dd0e9..5e8ba1046e39ebabecc7857e891d31884446917e 100644 --- a/kerninst +++ b/kerninst @@ -241,13 +241,13 @@ function make_initrd() { } # Updates grub -function _update_bootmanager_grub2() { - kinfo "Updating GRUB2..." +function _update_bootmanager_grub() { + kinfo "Updating GRUB..." if [ "${MOUNT_BOOT_EFI}" == "yes" ]; then kinfo "Mounting EFI boot directory..." /bin/mountpoint -q /boot/efi || /bin/mount /boot/efi fi - /usr/sbin/grub2-mkconfig -o "${GRUB2_CONFIG_FILE}" &>> "${LOGFILE}" || die + /usr/sbin/grub-mkconfig -o "${GRUB_CONFIG_FILE}" &>> "${LOGFILE}" || die } # Updates bootctl @@ -276,7 +276,7 @@ function _update_bootmanager_bootctl() { function update_bootmanager() { case "${BOOT_MANAGER}" in grub) - _update_bootmanager_grub2 + _update_bootmanager_grub ;; bootctl) _update_bootmanager_bootctl diff --git a/kerninst.conf b/kerninst.conf index 8d3b5f1e4871d286c9a8c13895c49fac6822f4c4..ddc335a298dff1ec8e07a161193b975bc8ad4fda 100644 --- a/kerninst.conf +++ b/kerninst.conf @@ -4,8 +4,8 @@ KERNEL_CONFIG="/etc/kerninst/kernel-config" # Bootmanager to use; grub or bootctl BOOT_MANAGER="bootctl" -# GRUB2 configuration file -#GRUB2_CONFIG_FILE="/boot/grub/grub.cfg" +# GRUB configuration file +#GRUB_CONFIG_FILE="/boot/grub/grub.cfg" # Bootctl entries title BOOTCTL_TITLE="Gentoo Linux"