initramfs-module-nfs: Fix packaging, add delay after g_ether load.
authorPaul Sokolovsky <pmiscml@gmail.com>
Tue, 25 Dec 2007 20:26:40 +0000 (20:26 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Tue, 25 Dec 2007 20:26:40 +0000 (20:26 +0000)
packages/initrdscripts/files/80-nfsboot.sh
packages/initrdscripts/initramfs-module-nfs_1.0.bb

index 5129a53..e1588c1 100644 (file)
@@ -31,10 +31,12 @@ if [ "$ROOT_DEVICE" = "/dev/nfs" ]; then
         usb*)
        echo "USB"
        modprobe g_ether
+       sleep 5
        ;;
     esac
     
     ifconfig $device $client_ip
+    ping -c 2 $server_ip
     )
 
     echo "booting from NFS: $nfsroot"
index acf71ad..77c3879 100644 (file)
@@ -1,5 +1,5 @@
 SRC_URI = "file://80-nfsboot.sh"
-PR = "r1"
+PR = "r2"
 DESCRIPTION = "An initramfs module for booting via NFS."
 RDEPENDS = "initramfs-uniboot"
 RRECOMMENDS = "kernel-module-g-ether kernel-module-nfs"
@@ -10,4 +10,4 @@ do_install() {
 }
 
 PACKAGE_ARCH = "all"
-FILES_${PN} += " /initrd.d/nfs "
+FILES_${PN} += " /initrd.d/* "