]> git.openpandora.org Git - openembedded.git/commitdiff
SlugOS 5.0 - slugos-init: update to make nfs boot work correctly; cleanup
authorMike Westerhof <mwester@dls.net>
Mon, 25 Aug 2008 06:23:27 +0000 (06:23 +0000)
committerMike Westerhof <mwester@dls.net>
Mon, 25 Aug 2008 06:23:27 +0000 (06:23 +0000)
of kexec stuff (although kexec won't work with the current kernel yet).

packages/slugos-init/files/boot/kexec
packages/slugos-init/files/boot/network
packages/slugos-init/slugos-init_5.0.bb

index dd757fd7712c4082952083847539b69054830ef3..a60be03142e1e36d6cbb205c2ea6007f1def5429 100644 (file)
@@ -91,7 +91,6 @@ if [ -n "$1" -a -n "$2" ] ; then
                        t=`basename "$kpath"`
                        kexec_image="/mnt/$t"
                    fi
-                   umount /sys
                fi
                ;;
 
@@ -105,7 +104,6 @@ if [ -n "$1" -a -n "$2" ] ; then
                        t=`basename "$kpath"`
                        kexec_image="/mnt/$t"
                    fi
-                   umount /sys
                fi
                ;;
 
@@ -143,7 +141,6 @@ if [ -n "$1" -a -n "$2" ] ; then
                        echo "Loading kexec kernel using tftp \"$kpath\"..."
                        tftp -g -l "$kexec_image" -r "${kpath#*:}" "${kpath%%:*}"
                    fi
-                   umount /sys
                fi
                ;;
 
index 8124f19ab26c56304487e6a4d5747d12c4c67e95..48aa9dd7d59360f49dc9da58b8ba009288ad5279 100644 (file)
@@ -24,8 +24,12 @@ ifconfig lo 127.0.0.1 up
 iface="$(config iface)"
 test -z "$iface" && exit 1 
 #
-# Fire up a process in the background to load the firmware if necessary
-sysf="/sys/class/firmware/firmware-$iface"
+# Fire up a process in the background to load the firmware if necessary.
+# If this system doesn't require the NPE-B firmware, no problem, the
+# background process will simply go away in two seconds.  If it requires
+# some other firmware, then modification will be required.  We probably
+# should replace this with mdev or some other hotplug-based technique...
+sysf="/sys/class/firmware/$iface"
 (
        # Wait for the firware to be requested, if required
        [ -f $sysf/loading ] || sleep 1
@@ -39,5 +43,9 @@ sysf="/sys/class/firmware/firmware-$iface"
 # Trigger the firmware load proactively
 ifconfig "$iface" up
 #
+# Unmount /sys and /proc before we leave
+umount /sys
+umount /proc
+#
 ifup "$iface"
 # exit code is true only if the interface config has succeeded
index 92ac7e30f3fb3e13bc446127cd24fbfbc6b512fc..9b7c2cd8d0912112d8feca57643df727440cf61c 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r1"
+PR = "r1.2"
 
 SRC_URI = "file://boot/flash \
           file://boot/disk \