diff options
authorChen Qi <>2014-05-21 03:45:03 -0400
committerChen Qi <>2014-06-16 18:24:04 +0800
commita05167c5bf0877dc40887e9040f3f386bf4b1263 (patch)
parent12bab2d828836c8926f753caff80b61dbe6390a5 (diff)
openembedded-core-contrib-a05167c5bf0877dc40887e9040f3f386bf4b1263.tar.bz2 add recipe
Add a recipe for a minimal initramfs image. Note that the purpose of this recipe is totally different from that of The latter is supposed to be used in the live image to "boot" or "install". The former is more like a traditional initramfs whose responsibility is to deal with the kernel parameters and then bring up the real root file system. After adding this recipe, we could specify INITRAMFS_IMAGE to be "initramfs-image-minimal". Note that in OE, we didn't have a reference image recipe for INITRAMFS_IMAGE. Signed-off-by: Chen Qi <>
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-core/images/ b/meta/recipes-core/images/
new file mode 100644
index 0000000000..24501e0446
--- /dev/null
+++ b/meta/recipes-core/images/
@@ -0,0 +1,19 @@
+# Minimal initramfs image
+DESCRIPTION = "Minimal initramfs image used to bring up the system."
+PACKAGE_INSTALL = "initramfs-framework-base initramfs-module-udev busybox udev base-passwd"
+# Do not pollute the initramfs image with rootfs features
+inherit image
+BAD_RECOMMENDATIONS += "busybox-syslog"
+# We need to set USE_DEVFS to "0" here to trigger creation of device nodes at rootfs time.
+# The reason here is that, when this initramfs is bundled into kernel, we need /dev/console
+# to be there before init is run.
+USE_DEVFS = "0"