LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-14-2021, 05:25 AM   #1
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
More of my idiocies with updating kernels...


Hey gang,

Sorry this seems to be a thing with me, but, it *is* important afterall, and I sure do want to be able to keep up with kernel updates as I was so easily able to do with all the Slackware versions I've used up to and including 14.2.

What I mean by 'easily able to do' is, that using 'lilo', it was as simple as simple gets. Install the updated kernel stuff that I got in my e-mail list from the Slackware team, and then did 'lilo'. Rebooted, and done. Something even the village idiot - me - could do.

Now that We're headed into V15 and I have a new machine I've built, this MOBO doesn't let me use lilo when I install 'current', so I end up with 'elilo'.

The only thing about that is, I have absolutely zero idea what to do if/when a kernel update comes around using 'elilo'.

I've tried reading up on the 'net about it, in Slackware docs, etc, but as usual it's all left me even more confused what to do after doing an

Code:
upgradepkg <kernel stuff>
It just seems as I'm getting older and the memory is getting worse quickly (no thanks to the help of contracting encephalitis when I was 27 years old also, meh), if it isn't kept simpleton-ly for folk like me, I'm going to lose out, and being disabled, my computer is the *ONLY* thing that has kept me from going ape-s*^t crazy these past 21 years and blowing my brains out.

I absolutely refuse to go to a different distro, like one of the 'buntus, because I've used other distro's - SuSE and Mandrake the first five or six years +/- after wiping my drives of anything M$ in the year 2000. I do not want to use anything with systemd either. I just really like the way Slackware is so easy when it comes to installing software/programs and keeping it up-to-date compared to 'rpm' distros.

So, I want more than anything to stick with Slackware, but just need help made for simpletons on how to upgrade kernel stuff when my system is installed with 'elilo'.

(Sorry for such a long post for such a simple request)
 
Old 08-14-2021, 05:45 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
The configuration interface for elilo is exactly the same as for lilo; it was deliberately designed that way. You have an elilo.conf file, which looks just like lilo.conf (only it's on the EFI system partition, not in /etc) and you add your new kernel and initrd to that in the usual way. That's all. You don't need to run /sbin/lilo because there's no longer any such program. elilo can read vfat filesystems so it can read its configuration file directly.
 
1 members found this post helpful.
Old 08-14-2021, 09:49 AM   #3
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by FTIO View Post
... What I mean by 'easily able to do' is, that using 'lilo', it was as simple as simple gets. Install the updated kernel stuff that I got in my e-mail list from the Slackware team, and then did 'lilo'. Rebooted, and done. ...
Since you didn't mention initrd, sounds like you're using the huge kernel. As Hazel mentioned, the process differs slightly between lilo & elilo. Since you're updating the kernel and not installing the new kernel, think of replacing the 1 step when you run lilo with 3 steps with elilo

1 - after upgrading the kernel, copy the new huge kernel from /boot to /boot/efi/EFI/Slackware.
2 - edit /boot/efi/EFI/Slackware/elilo.conf with the new kernel name.

Reboot, done!

3 - You should plan to revisit /boot/efi/EFI/Slackware regularly and delete the old huge kernel(s) otherwise your EFI partition may run out of space depending on the size of the partition.

You can make it more complicated with generic kernels (initrd) or multiple kernels (different naming convention) but that doesn't sound like your intention.
 
3 members found this post helpful.
Old 08-14-2021, 11:26 AM   #4
gp.d
LQ Newbie
 
Registered: Oct 2019
Location: north of germany
Distribution: slackware
Posts: 26

Rep: Reputation: Disabled
I use a very simple way, I don't have to touch "elilo.conf" on the /boot/efi/EFI/Slackware partition.

This is the part in elilo.conf:
Code:
image=vmlinuz
        label=vmlinuz
        initrd=initrd.gz
After a kernel upgrade (5.13.8 at the time of writing) I first create a new "initrd-5.13.8.gz" for that kernel, than copy the new kernel and that initrd
to the efi boot partition: from within the /boot directory I run
Code:
cp vmlinuz-generic-5.13.8 /boot/efi/EFI/Slackware/vmlinuz
cp initrd-5.13.8.gz /boot/efi/EFI/Slackware/initrd.gz
thats it
 
1 members found this post helpful.
Old 08-15-2021, 07:14 PM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Just likely a minor consideration but are you certain your new mobo doesn't have "Legacy Boot" or "CSM" on a toggle somewhere?

My newest machine is a Z490, less than one year old, and thankfully still has an CSM option. That's rather important to me since I have about 14TB storage with several operating systems and some of them are years old but I still want to be able to run them without converting the partition GPT. I can just let it default boot via EFI even with CSM enabled, or I can disable it for a less cluttered set of boot options. All I have to do to boot any of the old MBR systems is just hit the keystroke combo that allows me to select "Boot Order" and the next boot goes right back to default.
 
2 members found this post helpful.
Old 08-16-2021, 02:10 PM   #6
ReFracture
Member
 
Registered: Oct 2007
Posts: 209

Rep: Reputation: 222Reputation: 222Reputation: 222
Quote:
Originally Posted by Chuck56 View Post

1 - after upgrading the kernel, copy the new huge kernel from /boot to /boot/efi/EFI/Slackware.
2 - edit /boot/efi/EFI/Slackware/elilo.conf with the new kernel name.

Reboot, done!

3 - You should plan to revisit /boot/efi/EFI/Slackware regularly and delete the old huge kernel(s) otherwise your EFI partition may run out of space depending on the size of the partition.
Much like the OP I was having some difficulties wrapping my mind around kernel management after moving to an EFI system and using elilo. The above mentioned steps are exactly what I've been sticking to the past several years.
 
1 members found this post helpful.
  


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
Getting Assertion `kernels [x] == kernels [x]' failed with emulator in Slackware 14 Holering Slackware 1 05-10-2013 03:43 PM
backward compatibility in kernels + custom kernels + more queries mmp_3341 Linux - Kernel 1 04-12-2007 07:28 AM
Updating to 10.2 and effects on kernels Woodsman Slackware 2 11-23-2005 05:29 PM
updating and kernels dreaded Mandriva 9 09-02-2004 11:30 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

All times are GMT -5. The time now is 03:36 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