[oe] [oe-commits] org.oe.dev SlugOS: make "turnup nfs" work correctly with the new network driver (loads

Michael 'Mickey' Lauer mickey at vanille-media.de
Sun Feb 10 22:31:20 UTC 2008


On Sunday 10 February 2008 21:02:26 Paul Sokolovsky wrote:
> > ============================================================
> > --- packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
> > 225fbcdfa332608a2c8f1360fc922261f28ba694 +++
> > packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
> > 225fbcdfa332608a2c8f1360fc922261f28ba694 @@ -0,0 +1,10 @@ +#!/bin/sh
> > +#
> > +if [ X"$IFACE" == "Xeth0" ] ; then
> > +  nfsroot=`grep ' / nfs ' /proc/mounts`
> > +  if [ -n "$nfsroot" ]; then
> > +    echo "WARNING: Refusing to ifup eth0 when booted to a
> > nfs-mounted rootfs."
> > +    exit 1
> > +  fi
> > +fi
> > +exit 0
>
> 	Is this something which can be readily applied as general
> feature - NFS boot doesn't work out of the box for any ditsro since
> that eth0 dhcp change.

+1 from me, I'm using nfsroot a lot -- it's invaluable for rapid distro 
debugging.

:M:
-- 
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de




More information about the Openembedded-devel mailing list