diff options
-rw-r--r-- | packages/initrdscripts/files/80-nfsboot.sh | 2 | ||||
-rw-r--r-- | packages/initrdscripts/initramfs-module-nfs_1.0.bb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/initrdscripts/files/80-nfsboot.sh b/packages/initrdscripts/files/80-nfsboot.sh index 5129a53ebb..e1588c16a8 100644 --- a/packages/initrdscripts/files/80-nfsboot.sh +++ b/packages/initrdscripts/files/80-nfsboot.sh @@ -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" diff --git a/packages/initrdscripts/initramfs-module-nfs_1.0.bb b/packages/initrdscripts/initramfs-module-nfs_1.0.bb index acf71adb92..77c38799f3 100644 --- a/packages/initrdscripts/initramfs-module-nfs_1.0.bb +++ b/packages/initrdscripts/initramfs-module-nfs_1.0.bb @@ -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/* " |