Skip to contentSkip to conversation

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

oe-commits Paul Sokolovsky 2 participants 2 messages Feb 10, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello,

Quoted 4 lines · On Sun, 10 Feb 2008 03:12:26 +0100 "mwester commit"…

SlugOS: make "turnup nfs" work correctly with the new network driver (loads firmware, and ensures we do not ifup the interface if the rootfs in nfs).

Quoted 11 lines

Author: [email protected]
Branch: org.openembedded.dev
Revision: 7787114b2180be3c68b345096ba1efb73b3e8371 ViewMTN:
http://monotone.openembedded.org/revision/info/7787114b2180be3c68b345096ba1efb73b3e8371
Files: 1 packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot packages/netbase/netbase_4.21.bb packages/slugos-init/files/boot/network packages/slugos-init/slugos-init_4.8.bb
Diffs:

[]

Quoted 11 lines

============================================================
--- 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

(quoted diff) +5 -0
+#
+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."

Review

Quoted 4 lines
(quoted diff) +4 -0
+    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.

[]

Signature · 2 lines
Best regards,
 Paul                          mailto:[email protected]
#2 lore raw
Quoted 11 lines · On Sunday 10 February 2008 21:02:26 Paul Sokolovsky wrote:
Quoted 11 lines

============================================================
--- 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

(quoted diff) +5 -0
+#
+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."

Quoted 8 lines

Review

Quoted 4 lines
(quoted diff) +4 -0
+    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:

Signature · 1 line
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de