[Buildroot] [PATCH v2] system: Fix for NFS booting with interface config via DHCP
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Nov 18 21:16:21 UTC 2015
Dear Trent Piepho,
On Mon, 9 Nov 2015 22:16:49 +0000, Trent Piepho wrote:
> Configuring the network interface with DHCP via
> /etc/network/interfaces generally does not work when NFS booting. The
> DHCP configuration will initially bring the interface down and system
> then hangs at that point as the root filesystem is no longer
> accessable. See bug 4709.
>
> This adds a script to be run via a pre-up line in
> /etc/network/interfaces. It checks for a NFS root filesystem and if
> the interface to be configured is used for access to the NFS server.
> If this is the case, then it returns a failure code so that ifup will
> not configure the interface. This works for DHCP and another config
> methods (static, bootp, etc.). This system does detect if the
> interface to be configured isn't the one used for NFS and doesn't skip
> it when that is the case.
>
> NFS filesystems that aren't the root fs aren't considered.
>
> Signed-off-by: Trent Piepho <tpiepho at kymetacorp.com>
> ---
> package/skeleton/nfs_check | 20 ++++++++++++++++++++
> package/skeleton/skeleton.mk | 3 +++
> 2 files changed, 23 insertions(+)
> create mode 100755 package/skeleton/nfs_check
Applied to next, thanks! I only had to adjust the bug number, it's
fixing #4790, not #4709.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list