Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] netbase: fix check for nfsroot in if-pre-up.d script
@ 2011-04-29 10:02 Paul Eggleton
  2011-04-29 10:02 ` [PATCH 1/1] " Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2011-04-29 10:02 UTC (permalink / raw)
  To: poky, openembedded-core

From: Paul Eggleton <paul.eggleton@linux.intel.com>

Adding "auto eth0" to our default IP configuration caused failure to boot
NFS root systems [1]; netbase's if-pre-up.d/nfsroot script was supposed to stop
this but failed to do so due to looking for /sbin/ip when we actually now
install /bin/ip. This patch checks for either installed executable.

[1] http://bugzilla.pokylinux.org/show_bug.cgi?id=1006

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: paule/nfsroot-ifup
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/nfsroot-ifup

Thanks,
    Paul Eggleton <paul.eggleton@linux.intel.com>
---


Paul Eggleton (1):
  netbase: fix check for nfsroot in if-pre-up.d script

 meta/recipes-core/netbase/netbase-4.45/nfsroot |    2 +-
 meta/recipes-core/netbase/netbase_4.45.bb      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] netbase: fix check for nfsroot in if-pre-up.d script
  2011-04-29 10:02 [PATCH 0/1] netbase: fix check for nfsroot in if-pre-up.d script Paul Eggleton
@ 2011-04-29 10:02 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2011-04-29 10:02 UTC (permalink / raw)
  To: poky, openembedded-core

From: Paul Eggleton <paul.eggleton@linux.intel.com>

The if-pre-up.d/nfsroot script was no longer functioning correctly due to
a change in iproute2's installation of the "ip" executable. The script will
now function correctly regardless of whether ip is in /bin or /sbin.

Fixes [YOCTO #1006].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/recipes-core/netbase/netbase-4.45/nfsroot |    2 +-
 meta/recipes-core/netbase/netbase_4.45.bb      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/netbase/netbase-4.45/nfsroot b/meta/recipes-core/netbase/netbase-4.45/nfsroot
index fc384a8..750c0a9 100644
--- a/meta/recipes-core/netbase/netbase-4.45/nfsroot
+++ b/meta/recipes-core/netbase/netbase-4.45/nfsroot
@@ -27,7 +27,7 @@ exec 0<&9 9<&-
 
 test $nfsroot -eq 0 && exit 0
 
-if test -x /sbin/ip ; then
+if [ -x /bin/ip -o -x /sbin/ip ] ; then
     nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'`
 fi
 
diff --git a/meta/recipes-core/netbase/netbase_4.45.bb b/meta/recipes-core/netbase/netbase_4.45.bb
index 68cde85..319afa7 100644
--- a/meta/recipes-core/netbase/netbase_4.45.bb
+++ b/meta/recipes-core/netbase/netbase_4.45.bb
@@ -4,7 +4,7 @@ HOMEPAGE = "http://packages.debian.org/netbase"
 SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab"
-PR = "r0"
+PR = "r1"
 
 inherit update-rc.d
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-29 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 10:02 [PATCH 0/1] netbase: fix check for nfsroot in if-pre-up.d script Paul Eggleton
2011-04-29 10:02 ` [PATCH 1/1] " Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox