summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
authorAlex Osborne <ato@meshy.org>2007-07-20 13:24:07 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-07-20 13:24:07 +0000
commit4dbe593fa51cf0286431c13f78c7a769efb10ff7 (patch)
treeea0636807888ab0774020f2f71703ab482965385 /packages/initrdscripts
parent05f43c3791f8c270e5a8f32a19801154a9633913 (diff)
initramfs: Add blockboot plugin and cleanup dependency handling.
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/files/blockboot.sh8
-rw-r--r--packages/initrdscripts/initramfs-module-block_0.1.bb10
-rw-r--r--packages/initrdscripts/initramfs-module-loop_0.1.bb6
-rw-r--r--packages/initrdscripts/initramfs-module-nfs_0.1.bb5
-rw-r--r--packages/initrdscripts/initramfs_0.1.bb5
5 files changed, 31 insertions, 3 deletions
diff --git a/packages/initrdscripts/files/blockboot.sh b/packages/initrdscripts/files/blockboot.sh
new file mode 100644
index 0000000000..567f7e29b3
--- /dev/null
+++ b/packages/initrdscripts/files/blockboot.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Allow booting from a normal block device.
+
+if [ -e "$ROOT_DEVICE" ]; then
+ echo "booting from: $ROOT_DEVICE"
+ mount "$ROOT_DEVICE" /mnt
+ BOOT_ROOT=/mnt
+fi
diff --git a/packages/initrdscripts/initramfs-module-block_0.1.bb b/packages/initrdscripts/initramfs-module-block_0.1.bb
new file mode 100644
index 0000000000..6f8866da6c
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-block_0.1.bb
@@ -0,0 +1,10 @@
+SRC_URI = "file://blockboot.sh"
+PR = "r0"
+RDEPENDS = "initramfs"
+DESCRIPTION = "An initramfs module for booting off normal block devices."
+
+do_install() {
+ install -m 0755 ${WORKDIR}/blockboot.sh ${D}/initrd.d/block
+}
+
+FILES_${PN} += " /initrd.d/block "
diff --git a/packages/initrdscripts/initramfs-module-loop_0.1.bb b/packages/initrdscripts/initramfs-module-loop_0.1.bb
index ce8f368c5a..259141b392 100644
--- a/packages/initrdscripts/initramfs-module-loop_0.1.bb
+++ b/packages/initrdscripts/initramfs-module-loop_0.1.bb
@@ -1,5 +1,9 @@
SRC_URI = "file://loopboot.sh"
-PR = "r0"
+PR = "r1"
+DESCRIPTION = "An initramfs module for booting a filesystem image by loopback \
+ mounting it."
+RDEPENDS = "initramfs"
+RRECOMMENDS = "kernel-module-loop kernel-module-vfat"
do_install() {
install -m 0755 ${WORKDIR}/loopboot.sh ${D}/initrd.d/loop
diff --git a/packages/initrdscripts/initramfs-module-nfs_0.1.bb b/packages/initrdscripts/initramfs-module-nfs_0.1.bb
index 9f4436a26b..22fddfcdf2 100644
--- a/packages/initrdscripts/initramfs-module-nfs_0.1.bb
+++ b/packages/initrdscripts/initramfs-module-nfs_0.1.bb
@@ -1,5 +1,8 @@
SRC_URI = "file://nfsboot.sh"
-PR = "r1"
+PR = "r2"
+DESCRIPTION = "An initramfs module for booting via NFS."
+RDEPENDS = "initramfs"
+RRECOMMENDS = "kernel-module-g-ether kernel-module-nfs"
do_install() {
install -m 0755 ${WORKDIR}/nfsboot.sh ${D}/initrd.d/nfs
diff --git a/packages/initrdscripts/initramfs_0.1.bb b/packages/initrdscripts/initramfs_0.1.bb
index c7e44eae22..46ba06ff9a 100644
--- a/packages/initrdscripts/initramfs_0.1.bb
+++ b/packages/initrdscripts/initramfs_0.1.bb
@@ -1,5 +1,8 @@
SRC_URI = "file://init.sh"
-PR = "r0"
+PR = "r1"
+DESCRIPTON = "A modular initramfs init script system."
+RDEPENDS = "busybox-static"
+RRECOMMENDS = "kernel-module-uinput"
do_install() {
install -m 0755 ${WORKDIR}/init.sh ${D}/init