2008-01-05 16:56:31

by Ville Syrjälä

[permalink] [raw]
Subject: Problems with nfsroot due to ip= cmdline changes

I recently rebased my kernel tree and discovered that my nfsroot setup
no longer worked. Here's the relevat part of my cmdline:

ip=192.168.2.200:192.168.2.185:192.168.2.1:255.255.255.0::eth0:off nfsroot=192.168.2.185:/my_nfsroot,v3,tcp root=/dev/nfs

I discovered that now I had to change the autoconfiguration option to
"on" in order to make nfsroot work. I only want to specify the IP
address manually so I don't really want autoconfiguration. The current
code works since it will not try autoconfiguration when all options are
specified manually but the current behaviour does not really match the
documentation ie. now the autoconf parameter can disable the whole IP
configuration step even though the documentation says it will only
disable autoconfiguration.

Looks like these are the relevant commits:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6c05c3d064dbb83be88cba3189beb5db9d2dfc3
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9cecd07c3f7a818a5865daad8cb5be408508dc99

--
Ville Syrj?l?
[email protected]
http://www.sci.fi/~syrjala/


2008-01-06 09:32:20

by Simon Horman

[permalink] [raw]
Subject: Re: Problems with nfsroot due to ip= cmdline changes

On Sat, Jan 05, 2008 at 06:56:23PM +0200, Ville Syrj?l? wrote:
> I recently rebased my kernel tree and discovered that my nfsroot setup
> no longer worked. Here's the relevat part of my cmdline:
>
> ip=192.168.2.200:192.168.2.185:192.168.2.1:255.255.255.0::eth0:off nfsroot=192.168.2.185:/my_nfsroot,v3,tcp root=/dev/nfs
>
> I discovered that now I had to change the autoconfiguration option to
> "on" in order to make nfsroot work. I only want to specify the IP
> address manually so I don't really want autoconfiguration. The current
> code works since it will not try autoconfiguration when all options are
> specified manually but the current behaviour does not really match the
> documentation ie. now the autoconf parameter can disable the whole IP
> configuration step even though the documentation says it will only
> disable autoconfiguration.
>
> Looks like these are the relevant commits:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6c05c3d064dbb83be88cba3189beb5db9d2dfc3
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9cecd07c3f7a818a5865daad8cb5be408508dc99

Hi,

I believe that this patch from Amos Waterland resolves the problem that
you are seeing: http://lkml.org/lkml/2008/1/5/247

--
Horms