diff options
Diffstat (limited to 'meta/recipes-core/images/core-image-tiny-initramfs.bb')
-rw-r--r-- | meta/recipes-core/images/core-image-tiny-initramfs.bb | 9 |
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. |
2 | SUMMARY = "Tiny image capable of booting a device." | ||
2 | DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \ | 3 | DESCRIPTION = "Tiny image capable of booting a device. The kernel includes \ |
3 | the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ | 4 | the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ |
4 | first 'init' program more efficiently. core-image-tiny-initramfs doesn't \ | 5 | first 'init' program more efficiently. core-image-tiny-initramfs doesn't \ |
5 | actually generate an image but rather generates boot and rootfs artifacts \ | 6 | actually generate an image but rather generates boot and rootfs artifacts \ |
6 | that can subsequently be picked up by external image generation tools such as wic." | 7 | that 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 | ||
8 | VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" | 12 | VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" |
9 | 13 | ||
10 | PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" | 14 | PACKAGE_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 |
13 | IMAGE_FEATURES = "" | 17 | IMAGE_FEATURES = "" |
14 | 18 | ||
15 | export IMAGE_BASENAME = "core-image-tiny-initramfs" | ||
16 | IMAGE_NAME_SUFFIX ?= "" | 19 | IMAGE_NAME_SUFFIX ?= "" |
17 | IMAGE_LINGUAS = "" | 20 | IMAGE_LINGUAS = "" |
18 | 21 | ||
@@ -27,7 +30,7 @@ IMAGE_ROOTFS_SIZE = "8192" | |||
27 | IMAGE_ROOTFS_EXTRA_SPACE = "0" | 30 | IMAGE_ROOTFS_EXTRA_SPACE = "0" |
28 | 31 | ||
29 | # Use the same restriction as initramfs-live-install | 32 | # Use the same restriction as initramfs-live-install |
30 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux" | 33 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm).*-linux" |
31 | 34 | ||
32 | python tinyinitrd () { | 35 | python 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 | ||
42 | IMAGE_PREPROCESS_COMMAND += "tinyinitrd;" | 45 | IMAGE_PREPROCESS_COMMAND += "tinyinitrd" |
43 | 46 | ||
44 | QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init" | 47 | QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init" |