lkml.org 
[lkml]   [2001]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ip autoconfig with modules, kernel 2.4
On Fri, May 11, 2001 at 11:13:00AM -0700, Brian J. Murrell wrote:
> I should have given more information though. My goal is actually to
> NFSRoot the machine being booted. I could not determine a way to get
> the "root path" attribute given by the dhcp/bootp server from
> userspace back to the kernel so that it can
> "change_root()/mount_root()" with it. I seem to recall there was a
> proc interface for doing this at one time (in the 2.2 kernel) but it
> seemed to have went away.

As long as you can get the root server IP and path from the DHCP client,
then you mount it in a directory, and use pivot_root() to change to
that directory.

See the "Changing the root device" of Documentation/initrd.txt for more
information about this.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

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

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.059 / U:0.228 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site