[1/9] initramfs-image-minimal.bb: add recipe

Submitted by Qi.Chen@windriver.com on June 16, 2014, 10:46 a.m.


Message ID a05167c5bf0877dc40887e9040f3f386bf4b1263.1402915083.git.Qi.Chen@windriver.com
State New
Headers show

Commit Message

Qi.Chen@windriver.com June 16, 2014, 10:46 a.m.
Add a recipe for a minimal initramfs image.

Note that the purpose of this recipe is totally different from that
of core-image-minimal-initramfs.bb. 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 <Qi.Chen@windriver.com>
 .../recipes-core/images/initramfs-image-minimal.bb |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/recipes-core/images/initramfs-image-minimal.bb

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/images/initramfs-image-minimal.bb b/meta/recipes-core/images/initramfs-image-minimal.bb
new file mode 100644
index 0000000..24501e0
--- /dev/null
+++ b/meta/recipes-core/images/initramfs-image-minimal.bb
@@ -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"