LinuxQuestions.org
Visit Jeremy's Blog.
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-16-2011, 08:58 AM   #1
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Rep: Reputation: 1
Small bug in mkinitrd in slackware 13.37


Hi Slack maintainers,

After installing Slack 13.37 on one of my systems while using my own (non-standard) kernel it refused to boot as the harddisk couldn't be found anymore. Investigation yielded that the ahci.ko driver wasn't loaded (but libahci.ko was).

However I listed both ahci.ko and libahci.ko in the mkinitrd -m parameter so there had to be an error in the new /sbin/mkinitrd script.

It turned out that a grep at the end of the script weeded out my ahci.ko module as the searchterm "ahci.ko" was already detected in the modprobe line for libahci.ko.

I decided to fix it in an easy way : I just prepend a "space" in front of the module name at the line where the grep is called :

OLD:
if ! grep -q "$(basename $SRCMOD .ko)" $SOURCE_TREE/load_kernel_modules 2>/dev/null ; then
NEW:
if ! grep -q "\ $(basename $SRCMOD .ko)" $SOURCE_TREE/load_kernel_modules 2>/dev/null ; then

This fixed all problems and now the system boots fine again.

Could this be incorporated in the standard Slack mkinitrd script ?

Thanks in advance (also for making Slack Leet available ;-) )

Regards,
Kees Lemmens.
 
Old 05-16-2011, 09:43 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
I recommend you forward this by e-mail to volkerdi@
 
Old 05-16-2011, 09:50 AM   #3
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by zordrak View Post
I recommend you forward this by e-mail to volkerdi@
ok, done
 
  


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
A small bug in Slackware 13.0 lchxr Slackware 1 11-03-2009 07:56 AM
Slackware-current and mkinitrd-1.3.1 prontxo Slackware 8 03-30-2008 06:43 AM
Small bug with LQ search bp12345 LQ Suggestions & Feedback 8 08-09-2005 12:32 PM
mkinitrd script with slackware deb75 Slackware 1 04-20-2004 10:56 AM

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

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