LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2021, 07:05 AM   #1
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Rep: Reputation: 18
newbie problems with uefi update from current on nuc box


I've actually used slackware since the late 90's but this is the first time I've installed on a box that has the uefi boot environment. I made a successful fresh install of current 64 on the box once I had my partitions and bios set up correctly (uefi enabled, no secureboot on bios; efi partition added to the normal swap and filesystem partitions). The setup program recognized the uefi environment and eventually guided me to elilo. All was fine and I could boot.

After this last major update, however, (Feb 9? Feb 10?) I ran into problems. I did my research and thought that I needed to run "eliloconfig" as root. It took me to one of the setup routines that had me do elilo again. I thought all was good. Tried to reboot and it seemed to boot fine, but my keyboard went dead and I couldn't login. Tried a couple of other boot choices and didn't have any luck.

What should I have done instead of eliloconfig after the updated kernel?
 
Old 02-11-2021, 07:48 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If elilo boots a generic kernel and you upgraded the kernel, then eliloconfig will copy the new generic kernel over the old one, but it will not re-generate the initrd. So you end up with a new kernel and an old initrd which lacks the modules for the new kernel.

Running eliloconfig is something I recommend only for new installations. If you want to be really safe, your boot menu should always list one kernel that is known to work. You can manually add a new kernel and matchinf initrd to elilo.conf after you have manually generated a new initrd file.
The way I generate my initrd, say for kernel 5.10.14, after installing the kernel-modules package:

Code:
KERNELVERSION=5.10.14 ; /usr/share/mkinitrd/initrd_command_generator.sh -r -k $KERNELVERSION -a "-o /boot/efi/EFI/Slackware/initrd_$KERNELVERSION.gz" |bash
which will create the file "/boot/efi/EFI/Slackware/initrd_5.10.14.gz". As you see, my initrd filename reflects the kernel it was made for.
I also manually copy the installed generic kernel from /boot into /boot/efi/EFI/Slackware/
Then, I edit elilo.conf and copy the block of lines defining the existing kernel, and substitute the full name for the generic kernel (i.e. use "vmlinuz-generic-5.10.14" and not the symlink name "vmlinuz-generic" which is always the same) and the initrd (initrd_5.10.14.gz) and give them a new label.
I reboot and check if the new label boots my machine into the new kernel. If so, I make that label the new default in elilo.conf. If not, I find and correct my mistake (most often I forget to copy the new kernel into the EFI partition).
 
1 members found this post helpful.
Old 02-11-2021, 11:56 AM   #3
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
Thank you Eric. I'm going to do some more work on this when I get back to my computer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nuc nvme problems on fresh install of current: bio settings? tfrei Slackware 21 02-09-2021 11:43 AM
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
Can't install LM 32bit with UEFI disabled on UEFI Asus X200MA laptop dblaisde Linux Mint 3 10-15-2015 05:37 AM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration