lkml.org 
[lkml]   [2000]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Jobs: Update
Matthew Kirkwood wrote:
> Not true. root=/dev/whatever is /not/ a command-line option on
> i386. It gets stored in the b?zImage header.

Close ;-) It is both a command-line option _and_ a field in the image
header. The former (if present) overrides the latter.

The whole story: if you're using LILO (1), there are the following
places where the value may be set:

- default value, by kernel build
- optional: any changes made with rdev
- if lilo.conf has a root=... line: default beginning of kernel
command line (see /proc/cmdline - there's usually a root=xxxx
option there)
- optional: whatever you put into APPEND=... (not very useful, but
yes, you can override also root= this way)
- optional: any manually added root=... options
- if using initrd: RAM disk takes precedence over other root
settings (2)

(1) since LILO version 13 ('94). Older versions overwrote the header
field in memory at load time.
(2) this hack will probably disappear in the future. You can do the
same thing with pivot_root in an infinitely cleaner way.

- Werner

--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:3.484 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site