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 07-08-2022, 01:39 AM   #1
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,088

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
kmod-30 bug causes mkinitrd warning after kernel upgrade


When running
Code:
mkinitrd -c -k 5.18.10 -m ext4
after today's kernel upgrade I get the following warning:
Code:
depmod: WARNING: could not open modules.builtin.modinfo at /boot/initrd-tree/lib/modules/5.18.10: No such file or directory
Probably negligible since reboot was uneventful and everything seems to run as it should?

EDIT: checked the package and the modules.builtin.modinfo is there, but for some reason it's not transferred to my ssd during install.

Last edited by kgha; 07-08-2022 at 09:43 AM.
 
Old 07-08-2022, 01:59 AM   #2
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,027

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
I see exactly the same thing but as you say doesn't seem to cause a problem
 
1 members found this post helpful.
Old 07-08-2022, 07:19 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,472
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by kgha View Post
When running
Code:
mkinitrd -c -k 5.18.9 -m ext4
after today's kernel upgrade I get the following warning:
Dunno if that's a typo, but you seem to have typed the wrong kernel version there.
 
Old 07-08-2022, 08:09 AM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,088

Original Poster
Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Quote:
Originally Posted by rkelsen View Post
Dunno if that's a typo, but you seem to have typed the wrong kernel version there.
Yes it was a typo when posting, my first post now duly edited. Thanks for pointing it out.
 
Old 07-08-2022, 09:35 AM   #5
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,088

Original Poster
Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Seems to be a bug in kmod-30 causing this:
https://bugs.archlinux.org/task/75218
 
Old 07-08-2022, 11:32 AM   #6
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
http://slackware.osuosl.org/slackwar...nitrd/mkinitrd
Code:
  cp /lib/modules/$kver/modules.{builtin,order} \
->
Code:
  cp /lib/modules/$kver/modules.{builtin,builtin.modinfo,order} \
Or directly in /sbin/mkinitrd

Last edited by teoberi; 07-08-2022 at 11:52 AM.
 
4 members found this post helpful.
Old 07-08-2022, 12:03 PM   #7
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,593

Rep: Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457
Quote:
Originally Posted by teoberi View Post
http://slackware.osuosl.org/slackwar...nitrd/mkinitrd
Code:
  cp /lib/modules/$kver/modules.{builtin,order} \
->
Code:
  cp /lib/modules/$kver/modules.{builtin,builtin.modinfo,order} \
Or directly in /sbin/mkinitrd
Yes, I tested this and it fixes the error subject of this thread, and probably the built initrd works better.

BUT, what about the backward compatibility? There is nothing for us to care regarding it?

Last edited by LuckyCyborg; 07-08-2022 at 12:16 PM.
 
Old 07-08-2022, 12:22 PM   #8
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,088

Original Poster
Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Thanks, teoberi, your suggested change fixed the error for me. I'll mark the thread as solved, even if LuckyCyborg's point regarding backward compatibility might be valid.
 
Old 07-08-2022, 12:30 PM   #9
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 620

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
We will see in the next period if the solution is correct.
Arch Linux uses it.
 
Old 07-08-2022, 12:51 PM   #10
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 318

Rep: Reputation: 171Reputation: 171
I am very lazy and just run the geninitrd command after updating:
From the Slackware 15.0 release notes:

Quote:
Slackware 15.0 release notes. Wed Feb 2 18:39:59 CST 2022

Good hello folks, nice to see you here again. :-
I'd strongly recommend using a generic kernel for the best kernel module
compatibility as well. It's easier to do that than in previous releases - the
installer now makes an initrd for you, and the new geninitrd utility will
rebuild the initrd automatically for the latest kernel packages you've
installed on the system.
There is no error message when I rebuilt the initrd using geninitrd after Thursday's upgrade
 
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
Current64: mkinitrd-1.4.11-x86_64_22 - sbin/mkinitrd.orig burdi01 Slackware 5 04-17-2021 05:08 AM
[SOLVED] Cannot boot after upgrade-all, mkinitrd problems, uname reports wrong kernel BashTin Slackware 14 11-20-2017 01:20 AM
mkinitrd warnings after kmod addition in current. GazL Slackware 3 06-30-2012 04:50 AM
sudo mkinitrd -o /boot/initrd.img-2.6.32.9 2.6.32.9 sudo: mkinitrd: command not foun vishwas181 Linux - Newbie 1 02-27-2010 01:16 AM
mkinitrd problem WARNING: Could not find module fo xaos5 Slackware 2 12-31-2004 05:54 AM

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

All times are GMT -5. The time now is 06:52 PM.

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