Tuesday, February 13, 2018

UEFI and Slackware 14.2

I inherited my dad's computer that has Secure Boot/UEFI. Here's what I had to do to get elilo to work:
  1. Create an initrd (I'm using the generic kernel). I used this command in the /boot directory:
    mkinitrd -c -k 4.4.115 -m ext4 -f ext4 -r /dev/sda3
    This assumes that you are using ext4 and that /dev/sda3 is root
  2. Copy initrd.gz, vmlinuz-generic-4.4.115, and vmlinuz-huge to /boot/efi/EFI/Slackware
  3. Edit elilo.conf to reflect the boot parameters you want. Mine looks like this:
    default=generic
    prompt chooser=simple
    delay=100
    timeout=100
    #
    image=vmlinuz-generic-4.4.115
         initrd=initrd.gz
         root=/dev/sda3
         label=generic
         description="Slackware64 14.2"
         read-only

    image=vmlinuz
         root=/dev/sda3
         label=huge description="Slackware64 14.2 Huge"
         read-only
         append="root=/dev/sda3 vga=normal ro"