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
- 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
(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 Almesberger, ICA, EPFL, CH firstname.lastname@example.org / /_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 email@example.com Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:28 EST