summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/images/core-image-tiny-initramfs.bb2
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb21
2 files changed, 22 insertions, 1 deletions
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index 16995e6580..51d08a0cd1 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -5,7 +5,7 @@ first 'init' program more efficiently. core-image-tiny-initramfs doesn't \
5actually generate an image but rather generates boot and rootfs artifacts \ 5actually generate an image but rather generates boot and rootfs artifacts \
6that can subsequently be picked up by external image generation tools such as wic." 6that can subsequently be picked up by external image generation tools such as wic."
7 7
8PACKAGE_INSTALL = "initramfs-live-boot packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" 8PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
9 9
10# Do not pollute the initrd image with rootfs features 10# Do not pollute the initrd image with rootfs features
11IMAGE_FEATURES = "" 11IMAGE_FEATURES = ""
diff --git a/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb
new file mode 100644
index 0000000000..7a9a8ecae2
--- /dev/null
+++ b/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb
@@ -0,0 +1,21 @@
1SUMMARY = "Live image init script"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4DEPENDS = "virtual/kernel"
5RDEPENDS_${PN} = "busybox-mdev"
6SRC_URI = "file://init-live.sh"
7
8PR = "r12"
9
10S = "${WORKDIR}"
11
12do_install() {
13 install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
14 install -d ${D}/dev
15 mknod -m 622 ${D}/dev/console c 5 1
16}
17
18FILES_${PN} += " /init /dev "
19
20# Due to kernel dependency
21PACKAGE_ARCH = "${MACHINE_ARCH}"