Sunday, October 29, 2023

BIOS Updates and UEFI

I finally figured out how to rebuild my EFI boot entry after a BIOS update. I boot to the Slackware USB boot drive. When it has me select a kernel I hit tab and enter the following command:

huge.s root=/dev/nvme0n1p2 rdinit=ro

Then once it finally boots to my existing Slackware installation, I issue this command:

efibootmgr -c -d /dev/nvme0n1p1 -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware"

I wish that the EFI boot entry wouldn't be deleted, but since the BIOS updater automatically clears all BIOS settings, it is inevitable.

Update 3/18/2024: I finally got smart and make a shell script for the efibootmgr command and put it in /root so that it's handy whenever I have a new BIOS available.

Sunday, February 19, 2023

Even More UEFI Stuff

About five years ago I posted about getting UEFI to work with Slackware and elilo. I made it a bit more confusing than it needed to be. To make an initrd, you just need to go into the /boot directory as root and use the command geninitrd. Slackware will automagically make the proper initrd.gz so your system will boot.

Then copy the generic and huge kernels as well as initrd.gz to /boot/efi/EFI/Slackware. eliloconfig will create an elilo.conf file there but it will only create one entry. You can make your own. The syntax is very similar to lilo. Here's my current elilo.conf. I noticed there was some weirdness in the one from five years ago. This is for the latest kernel as of this writing on my fancy new WD Black NVMe drive. Zoom!

chooser=simple
delay=100
timeout=100
prompt
#
image=vmlinuz-generic-5.15.94
       label=generic
       description="Slackware 15.0"
       initrd=initrd.gz
       read-only
       append="root=/dev/nvme0n1p2 vga=normal ro"

image=vmlinuz-huge-5.15.94
       label=huge
       description="Slackware 15.0 Huge"
       read-only
       append="root=/dev/nvme0n1p2 vga=normal ro"