diff options
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r-- | packages/initrdscripts/devimage_0.1.bb | 3 | ||||
-rw-r--r-- | packages/initrdscripts/files/30-bootmenu.sh | 4 | ||||
-rw-r--r-- | packages/initrdscripts/files/80-nfsboot.sh | 2 | ||||
-rw-r--r-- | packages/initrdscripts/initramfs-module-bootmenu_1.0.bb | 6 | ||||
-rw-r--r-- | packages/initrdscripts/initramfs-module-nfs_1.0.bb | 4 |
5 files changed, 12 insertions, 7 deletions
diff --git a/packages/initrdscripts/devimage_0.1.bb b/packages/initrdscripts/devimage_0.1.bb index 8eb6fa2d83..08949b9515 100644 --- a/packages/initrdscripts/devimage_0.1.bb +++ b/packages/initrdscripts/devimage_0.1.bb @@ -1,5 +1,6 @@ +DESCRIPTION = "Set of files to initialize bare system suitable for kernel, etc. testing." SRC_URI = "file://devimage.sh file://passwd file://dropbear_rsa_host_key" -PR = "r1" +PR = "r2" do_install() { install -m 0755 ${WORKDIR}/devimage.sh ${D}/init diff --git a/packages/initrdscripts/files/30-bootmenu.sh b/packages/initrdscripts/files/30-bootmenu.sh index 1bb53d20a3..319f85aa6e 100644 --- a/packages/initrdscripts/files/30-bootmenu.sh +++ b/packages/initrdscripts/files/30-bootmenu.sh @@ -94,7 +94,7 @@ while read maj min nblk dev; do add_menu_item "$dev ($fstype)" done < /proc/partitions -add_menu_item "NFS (nfsroot=192.168.2.200:/nfs/image)" +add_menu_item "NFS (nfsroot=192.168.2.200:/srv/nfs/oe/image)" total=`echo -e $list | wc -l` num=0 @@ -145,7 +145,7 @@ path=`expr "$sel" : '[^/]*\([^ ]*\).*'` if [ "$dev" == "NFS" ]; then ROOT_DEVICE="/dev/nfs" - CMDLINE="$CMDLINE nfsroot=192.168.2.200:/nfs/image" + CMDLINE="$CMDLINE nfsroot=192.168.2.200:/srv/nfs/oe/image" elif [ -n "$path" ]; then ROOT_DEVICE="/dev/loop" CMDLINE="looproot=/dev/$dev:$path" 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-bootmenu_1.0.bb b/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb index 002acff0a9..19e7403b83 100644 --- a/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb +++ b/packages/initrdscripts/initramfs-module-bootmenu_1.0.bb @@ -1,7 +1,9 @@ SRC_URI = "file://30-bootmenu.sh" -PR = "r3" -RDEPENDS = "klibc-utils-fstype initramfs-uniboot initramfs-module-block initramfs-module-loop" +PR = "r7" DESCRIPTION = "An initramfs module with UI for selection of boot device." +RDEPENDS = "klibc-utils-fstype initramfs-uniboot initramfs-module-block initramfs-module-loop initramfs-module-nfs" +# For VFAT mounting. +RRECOMMENDS = "kernel-module-nls-cp437 kernel-module-nls-iso8859-1" do_install() { install -d ${D}/initrd.d 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/* " |