LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-20-2008, 07:24 PM   #1
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
generic kernel boot time parameters ignored


When I use the generic kernel (in Slackware 12.2) my append statements are ignored. If I type parameters in manually at the LILO prompt they are ignored as well.

Anybody else having this problem? It all works fine on a custom kernel (2.6.24.7) I have previously been using.

Here is a sample from my lilo.conf
Code:
image = /boot/vmlinuz-generic-smp-2.6.27.7-smp
  initrd = /boot/initrd.gz
  root = /dev/hdb5
  append="single mp3player=on bootFast=yes"
  label = __Auto_Music__
  read-only  # Partitions should be mounted read-only for checking
 
Old 12-20-2008, 08:52 PM   #2
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 310

Rep: Reputation: 59
Just out of curiosity,
Quote:
The usual reason to use an initrd is because you need to load kernel
modules before mounting the root partition. Usually these modules are
required to support the filesystem used by the root partition (ext3,
reiserfs, xfs), or perhaps the controller that the hard drive is attached
to (SCSI, RAID, etc). Essentially, there are so many different options
available in modern Linux kernels that it isn't practical to try to ship
many different kernels to try to cover everyone's needs. It's a lot more
flexible to ship a generic kernel and a set of kernel modules for it.
what is the reason of using initrd other than this one above, isn't better to build a custom kernel ?.
 
Old 12-20-2008, 11:25 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Original Poster
Rep: Reputation: 70
If time were infinite then I would always build a custom kernel, but time is limited so sometimes using a generic kernel with initrd is best. It is also useful for people who don't know how to make a good custom kernel for their setup.
 
Old 12-21-2008, 12:19 AM   #4
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 310

Rep: Reputation: 59
Fair enough.
For a quite some time I'd have been using a custom kernel and never used initrd, so I've always been curious about this one.
Thanks for an answer, and sorry for interruption.
 
Old 12-21-2008, 07:04 AM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
I've installed 12.2 in a VM. The first thing I do after an install is create an initrd and add the generic kernel to lilo (as per the CHANGES_AND_HINTS.TXT) and have been looking into various things that needed kernel parameters passing,( init=/bin/bash to be exact), and have noticed the generic kernel seems to ignore this parameter but the huge one honors it.

As a test I tried passing "single",1 and "S" but all were ignored with the generic kernel. At first I thought I had forgotten to pass the parameters but /proc/cmdline showed that in fact I had supplied them.

I presume this has something to do with the kernel config but I haven't investigated it further.

Quote:
what is the reason of using initrd other than this one above, isn't better to build a custom kernel ?.
@Nickosis - this is from the CHANGES_AND_HINTS.TXT on your install media..

Quote:
Use one of the provided generic kernels for daily use. Do not report
bugs until/unless you have reproduced them using one of the stock
generic kernels. You will need to create an initrd in order to boot
the generic kernels - see /boot/README.initrd for instructions.
Although I realise some hardware will require a custom kernel I have had great success with the generic kernels now with the recent releases.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
generic-smp kernel doesn't boot in 12.2 samac Slackware 7 12-12-2008 12:01 PM
Modify kernel boot parameters? HighLife Red Hat 2 08-16-2007 09:05 PM
How to load modules (with parameters) at boot time? Akhran Debian 5 10-25-2006 12:20 PM
Editing default module parameters at boot time icpsvt Linux - General 3 02-11-2006 07:03 PM
boot kernel parameters? Z-Ice Linux - Software 1 08-07-2003 07:14 PM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration