[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs

[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.

Welcome to the Slackware Documentation Project

It's not that this page is critically outdated or anything. But it is rather old.. I think it could be worth updating the page and including the information from this posting on linuxquestions.org : https://www.linuxquestions.org/questions/slackware-14/grub2-in-slackware-discussion-and-instruction-4175727986/#post6447855

I don't want to update this page, since I don't use UEFI and don't want to start changing the current content and adding the new content in the right places and so fourth. Making it a bit more readable/simple wouldn't hurt either. Here is the content of that post:

Originally Posted by LuckyCyborg View Post Here's a mini-tutorial.

Installing GRUB2

IF you have a hardware using UEFI, you should mount /boot/efi and execute this command:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Slackware --recheck

Updating the GRUB2 configuration

All you have to do is to execute this command:

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

For your convenience in future, you can create this /usr/sbin/update-grub script:

#!/bin/sh

set -e

exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

And there is time to reboot and enjoy your GRUB2 setup with the generic kernel.

On the future, each time you upgrade the kernel, you should execute this command:

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

That's all.

QR Code
QR Code talk:howtos:slackware_admin:set_up_grub_as_boot_loader_on_uefi_based_hardware (generated for current page)