LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2011, 06:03 AM   #1
Proxx
LQ Newbie
 
Registered: Sep 2007
Location: Holland
Posts: 20

Rep: Reputation: 0
Question Create Kernel boot params.


Hi all,

i am trying to figure out how i can add boot options to a kernel. i know some other distros has added some. for example Trinity TRK.

in trk you boot with syslinux in a vesamenu.c32 then you can start the linux live environment with SSH server enabled.
or Virus scan all drivers.

Quote:
label 6
kernel kernel.trk
menu label ^6 : TRK 3.4 - Virusscan all drives (Clamav, non interactive)
append initrd=initrd.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 virusscan

label 9
kernel kernel.trk
menu label ^9 : TRK 3.4 with a secure shell server enabled
append initrd=initrd.trk ramdisk_size=65536 root=/dev/ram0 vga=788 splash=verbose pci=conf1 sshd

i cannot figure out how i can create the boot params on my own. and compile them to my liveCD kernel image.

PS: i did not find a more appropriate subforum so i hope this is the wright place :P

EDIT: i Solved my problem!!!
Not sure if this is the wright way. but im pretty shure i have found a way

in the file \kernel-xxx.xxx.xx.xx\scripts\rc.modules add

Code:
if ! /bin/grep param /proc/cmdline; then
   echo "[0;1mUse 'param' boot parameter to skip the following step:[0;0m"
   /sbin/modprobe param ?> /dev/null
fi
this will skip loading module param if param is found with the boot options.

something like this. i guess.
the next thing to do is make a decent module.c that will you my tricks =]

Last edited by Proxx; 05-04-2011 at 09:57 AM.
 
Old 05-05-2011, 12:47 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Glad you've found a solution for your problem and thanks for sharing it. Off the Zero Reply List.

Kind regards,

Eric
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to dynamically create an array of params for execv in C nindzadza Programming 9 01-06-2011 12:51 PM
intel i810fb boot params TomalakBORG Linux - Software 2 12-01-2006 08:08 PM
Boot stuck at 'Configuring kernel params...' linuxify Mandriva 0 02-16-2004 03:33 PM
boot stuck at 'Configuring kernel params...' linuxify Linux - Newbie 0 02-16-2004 12:39 PM
how to add nolapic to the boot params biotek1 Linux - Laptop and Netbook 6 12-13-2003 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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