LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-11-2020, 11:36 PM   #16
gsl
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Slackware
Posts: 76

Rep: Reputation: 44

Quote:
Originally Posted by colorpurple21859 View Post
However, with a kernel update a "modules doesn't exist" error will occur because the kernel version in the mkinitrd.conf will still point to the old kernel version.
I guess best practice is to pass the kernel version on the command line to mkinitrd as this overrides the config file defaults:

Code:
mkinitrd -F -k 4.4.217
Edit: Actually, seeing as mkinitrd.conf is sourced by mkinitrd, you could possibly use your readlink trick to set KERNEL_VERSION to the newly-installed kernel. It defaults to "KERNEL_VERSION=$(uname -r)" so it doesn't have to be hard-coded.

Last edited by gsl; 05-12-2020 at 12:50 AM.
 
  


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] slackware 14.2 | how to mount already configured samba/slackware share point ??? jhsdcsjdcvbdj Slackware 19 08-28-2017 07:04 PM
New install and I broke it already knottshawk Ubuntu 5 05-08-2009 02:56 PM
DHCPCD broke, how to install from Slackware install disk? JockVSJock Slackware 8 03-20-2006 10:04 PM
less than 24 hrs into linux and i already broke something lejakl Linux - Software 7 07-31-2003 10:47 AM

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

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