On Wed, Jan 14, 2004 at 09:12:28AM -0700, dann frazier wrote: > On Tue, Jan 13, 2004 at 08:32:32PM -0500, Sean Dague wrote: > > If you add local.cfg support for it it will work on /proc/cmdline as well. > > The items are merged during install (I actually traced this once). > > hrm? are you saying there is some support for passing options via > /proc/cmdline support already?
Yep, in the version I have on my machine (is old because I don't have CVS
write access any more) there is the following in
initrd_source/skel/etc/init.d/rcS
...
read_local_cfg() {
echo
echo read_local_cfg
# BEGIN try hard drive
#
# this must be on two lines in order to substitute the newline
cat /proc/cmdline | sed "s/ /\\
/g" | sed -n "s/=/=/p" > /tmp/last_root.$$
# suck in variable
. /tmp/last_root.$$
...
I used this for iSeries support on network boot to configure the machine, as
there isn't a concept of local media and ip addrs must be configured
statically.
The effect is that it just merges everything from local.cfg and
/proc/cmdline into the variables file.
-Sean
--
__________________________________________________________________
Sean Dague Mid-Hudson Valley
sean at dague dot net Linux Users Group
http://dague.net http://mhvlug.org
There is no silver bullet. Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
pgp00000.pgp
Description: PGP signature
