]> code.ossystems Code Review - openembedded-core.git/commit
nfsroot: allow nfsroot to survive netbase init
authorQing He <qing.he@intel.com>
Tue, 18 May 2010 16:24:25 +0000 (00:24 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 9 Aug 2010 15:54:08 +0000 (16:54 +0100)
commit601464b4974e46d15abd02efd46663efcd530da8
tree30bffdbd2c0b97d55318139afa714c2f0602253b
parentbca283671f74b79394e9c332b790e5ed0dc44f35
nfsroot: allow nfsroot to survive netbase init

The patch adds a script in /etc/network/if-pre-up.d,
the script returns 1 (effectly skip the ifup on the iface) iff:
  1. there is a "* / (nfs|nfs4) *" entry in the /proc/mounts
  2. the addr field in that entry is routed using $IFACE

Signed-off-by: Qing He <qing.he@intel.com>
meta/packages/netbase/netbase/nfsroot [new file with mode: 0644]
meta/packages/netbase/netbase_4.41.bb