# only shell and dropbear are loaded by default.
# Allows to login via serial and real console or SSH
LICENSE = "MIT"
-PR = "r2"
+PR = "r2.2"
DEVIMAGE_EXTRA_RDEPENDS ?= ""
RDEPENDS = "devimage busybox dropbear udev \
# Sample initramfs image
LICENSE = "MIT"
-PR = "r1"
+PR = "r2"
-#RDEPENDS = "initramfs-boot busybox kernel-module-uinput uclibc libgcc1"
-RDEPENDS = "initramfs initramfs-module-nfs initramfs-module-loop \
- busybox-static"
-
-RRECOMENDS = "kernel-module-uinput kernel-module-fat \
- kernel-module-vfat kernel-module-loop"
+RDEPENDS = "initramfs-module-block initramfs-module-loop initramfs-module-nfs"
export IMAGE_BASENAME = "initramfs-image"
export IMAGE_LINGUAS = ""
PACKAGE_INSTALL = "${RDEPENDS}"
-# Install only ${PACKAGE_INSTALL}, not even deps
-PACKAGE_INSTALL_NO_DEPS = "1"
+
+# Remove any kernel-image that the kernel-module-* packages may have pulled in.
+PACKAGE_REMOVE = "kernel-image-* update-modules"
+ROOTFS_POSTPROCESS_COMMAND += "ipkg-cl ${IPKG_ARGS} -force-depends \
+ remove ${PACKAGE_REMOVE};"
inherit image
--- /dev/null
+#!/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
--- /dev/null
+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 "
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
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
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