LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-21-2022, 05:16 PM   #1
Swaggajackin
Member
 
Registered: Jan 2022
Posts: 55

Rep: Reputation: 22
Question [SOLVED] How to upgrade the Linux kernel during a Slackware 15.0 -> Slackware-Current upgrade?


Hello, I've got a second installation of Slackware 15.0 on my laptop, I'm going to upgrade it to Current. I did this on my main PC and followed the directions here: https://docs.slackware.com/howtos:sl...:systemupgrade

The problem is when I ran
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k x.x.xx (forgive me, I forgot what version it upgraded to)
I ran the command the shell script output and renamed everything in /boot as per instructions and my system refused to boot as it told me it could not find xx.xx.xx kernel modules. I used a Slackware-Current installation CD to fix it and had the installation setup do the initial ramdisk step and all was well. I would like to avoid this situation happening again.

I have a UEFI system and I'm currently using ELILO. What are the proper steps to ensure I've set my new kernel to boot properly? Thank you.

EDIT:

Hrmmm, I saw this snippet from this page:

https://docs.slackware.com/howtos:sl...:systemupgrade

Quote:
Add the kernel modules for your new kernel to the existing initrd file. That way, you have a single initrd image containing modules for multiple kernels. All you need to do is leave out the option “-c” which is the option to wipe the directory /boot/initrd-tree and start from scratch:
Code:
mkinitrd -k 2.6.37.6 -m ext3
Is this the missing step that would solve this?

EDIT: I don't think that's the issue, I ran the script and the following command:

Code:
mkinitrd -c -k 5.17.4 -f ext4 -r /dev/sdb2 -m xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
However I got some concerning warnings:
Quote:
"WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko"
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/ext4/ext4.ko"
I checked for the modules it said it could not find and they are there
Quote:
ls -l /lib/modules/5.17.4/kernel/fs/ext4/ext4.ko
-rw-r--r-- 1 root root 1729912 Apr 20 13:36 /lib/modules/5.17.4/kernel/fs/ext4/ext4.ko
Unsure if I should be concerned or not. I'm afraid when I reboot I'm going to have the same issue.

Last edited by Swaggajackin; 04-21-2022 at 06:17 PM.
 
Old 04-21-2022, 06:17 PM   #2
Swaggajackin
Member
 
Registered: Jan 2022
Posts: 55

Original Poster
Rep: Reputation: 22
Well apologies if I wasted anyone's time but everything went well without a hitch which just leads me to believe that I did something wrong the first time. To sum it up I just:

1. Upgraded the kernel via slackpkg
2. Ran the script to generate the mkinitrd command `/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.17.4`
3. Ran the command the script generated.
4. Ran `eliloconfig`
5. Reboot.

Again, apologies, I must have messed something up the first time.
 
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
Slackware -current. Slackpkg ended with warning: incorrect md5sum during upgrade igadoter Slackware 2 09-30-2019 03:46 PM
[SOLVED] errors during slackware64 current multilib upgrade. rinaldij Slackware 8 09-12-2019 10:15 PM
[SOLVED] Slackware 14.2 glibc-2.23 vs Slackware Current glibc-2.24 and the Current 4.4.17 Kernel kjhambrick Slackware 10 08-13-2016 01:00 AM
DISCUSSION: Upgrade to Slackware -current without a -current CD truthfatal LinuxAnswers Discussion 0 09-19-2006 01:42 PM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM

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

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