summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/images/core-image-tiny-initramfs.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/images/core-image-tiny-initramfs.bb')
-rw-r--r--meta/recipes-core/images/core-image-tiny-initramfs.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index 47470849ed..c2aa68c788 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -1,10 +1,14 @@
1# Simple initramfs image artifact generation for tiny images. 1# Simple initramfs image artifact generation for tiny images.
2SUMMARY = "Tiny image capable of booting a device."
2DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \ 3DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \
3the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ 4the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \
4first 'init' program more efficiently. core-image-tiny-initramfs doesn't \ 5first 'init' program more efficiently. core-image-tiny-initramfs doesn't \
5actually generate an image but rather generates boot and rootfs artifacts \ 6actually generate an image but rather generates boot and rootfs artifacts \
6that can subsequently be picked up by external image generation tools such as wic." 7that can subsequently be picked up by external image generation tools such as wic."
7 8
9# if distro does not override VIRTUAL-RUNTIME_dev_manager and default in different, busybox is compiled without mdev support
10# however this keeps the image small by not installing heavy-weight manager and in initramfs it may not even be necessary
11# override in distro if needed
8VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" 12VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev"
9 13
10PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" 14PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
@@ -12,7 +16,6 @@ PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VI
12# Do not pollute the initrd image with rootfs features 16# Do not pollute the initrd image with rootfs features
13IMAGE_FEATURES = "" 17IMAGE_FEATURES = ""
14 18
15export IMAGE_BASENAME = "core-image-tiny-initramfs"
16IMAGE_NAME_SUFFIX ?= "" 19IMAGE_NAME_SUFFIX ?= ""
17IMAGE_LINGUAS = "" 20IMAGE_LINGUAS = ""
18 21
@@ -27,7 +30,7 @@ IMAGE_ROOTFS_SIZE = "8192"
27IMAGE_ROOTFS_EXTRA_SPACE = "0" 30IMAGE_ROOTFS_EXTRA_SPACE = "0"
28 31
29# Use the same restriction as initramfs-live-install 32# Use the same restriction as initramfs-live-install
30COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux" 33COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm).*-linux"
31 34
32python tinyinitrd () { 35python tinyinitrd () {
33 # Modify our init file so the user knows we drop to shell prompt on purpose 36 # Modify our init file so the user knows we drop to shell prompt on purpose
@@ -39,6 +42,6 @@ python tinyinitrd () {
39 init.write(newinit) 42 init.write(newinit)
40} 43}
41 44
42IMAGE_PREPROCESS_COMMAND += "tinyinitrd;" 45IMAGE_PREPROCESS_COMMAND += "tinyinitrd"
43 46
44QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init" 47QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init"