Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-13-2009, 06:47 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Boot parameters utilization during ks installation - question


I need to define a number of ks installations which obviously will be directing the installer to a relevant ks.cfg file on my cd.

The installation should be able to install single components of a server or a combination of them.

There are about 8 components and I want to avoid creation of that many ks.cfg files, instead I'd like to utilize the boot prompt so a relevant script is called by a central ks.cfg.

Is it possible to read the input given at the boot prompt?

The distribution is RHEL4.7.

Old 01-14-2009, 12:13 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Originally Posted by infernal211283_ View Post
Is it possible to read the input given at the boot prompt?
cat /proc/cmdline
Old 01-14-2009, 08:41 AM   #3
LQ Newbie
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for replying.

Sorry for not explaining myself better, but what I had in mind is the human input, not the content of the label a person inputs...

For instance, if I have the section shown below, I'd like to be able to find the input 'aaa' somewhere (switching to a shell on /dev/tty2 during installation), or even better, any input the user might give.

label aaa
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/modularization/aaa/ks.cfg ramdisk_size=8192

Another thought:
Perhaps there's a more flexible option to get user input on boot and just boot with a default label which will call for a ks.cfg file that will use the grabbed boot prompt input and run a relevant script in the "pre" or "post" sections?

I found the "onerror" option of isolinux which makes the server boot
a selected label whenever a wrong label name is given, this brings me one step closer but I still need a way to catch the prompt input.

Any advice is much appreciated.

Last edited by infernal211283_; 01-14-2009 at 09:21 AM.
Old 01-14-2009, 10:27 AM   #4
LQ Newbie
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, I found a solution for this one...

Using the "onerror" in isolinux.cfg and the isolinux-debug.bin instead of isolinux.bin when creating the iso file...
This way I'm able to configure it in a way that any given input boots the default label and during the installation, the string that was given, can be found in /tmp/syslog.

Last edited by infernal211283_; 01-14-2009 at 10:28 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux desktop GUI tool for CPU utilization and bandwidth utilization karimasif Linux - Software 4 03-03-2008 01:09 PM
Internet Bandwidth Utilization Question walla299 Linux - Networking 7 08-10-2007 05:23 AM
how can I check software configuration parameters after installation? leftPeg Linux - Newbie 1 03-10-2006 03:42 AM
boot parameters MKS45 Linux - Newbie 2 04-09-2004 09:12 AM
Memory Utilization Question toddclark Linux - General 1 11-04-2000 06:05 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration