* [PATCH] initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe
@ 2017-11-22 17:09 Alejandro Hernandez
2017-11-22 20:42 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Hernandez @ 2017-11-22 17:09 UTC (permalink / raw)
To: openembedded-core
The original initramfs-live-boot recipe RDEPENDS on udev, which is ok since
the init script relies some of its functionality on udevadm and such,
but on core-image-tiny-initramfs the init script simply drops to shell
after a basic setup, so udev is not needed.
This patch splits up an initramfs-live-boot-tiny recipe which does not
use udev, but uses busybox-mdev instead, eudev installed about 600
extra Kilobytes to core-image-tiny-initramfs userspace, by avoiding to
install eudev we achieve an even smaller footprint (almost 40% smaller).
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
---
.../images/core-image-tiny-initramfs.bb | 2 +-
.../initrdscripts/initramfs-live-boot-tiny_1.0.bb | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index 16995e6580a..51d08a0cd1c 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 \
actually generate an image but rather generates boot and rootfs artifacts \
that can subsequently be picked up by external image generation tools such as wic."
-PACKAGE_INSTALL = "initramfs-live-boot packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
+PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot dropbear ${VIRTUAL-RUNTIME_base-utils} ${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
# Do not pollute the initrd image with rootfs features
IMAGE_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 00000000000..7a9a8ecae26
--- /dev/null
+++ b/meta/recipes-core/initrdscripts/initramfs-live-boot-tiny_1.0.bb
@@ -0,0 +1,21 @@
+SUMMARY = "Live image init script"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+DEPENDS = "virtual/kernel"
+RDEPENDS_${PN} = "busybox-mdev"
+SRC_URI = "file://init-live.sh"
+
+PR = "r12"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
+ install -d ${D}/dev
+ mknod -m 622 ${D}/dev/console c 5 1
+}
+
+FILES_${PN} += " /init /dev "
+
+# Due to kernel dependency
+PACKAGE_ARCH = "${MACHINE_ARCH}"
--
2.12.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe
2017-11-22 17:09 [PATCH] initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe Alejandro Hernandez
@ 2017-11-22 20:42 ` Otavio Salvador
2017-11-22 22:49 ` Alejandro Hernandez
0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2017-11-22 20:42 UTC (permalink / raw)
To: Alejandro Hernandez; +Cc: Patches and discussions about the oe-core layer
On Wed, Nov 22, 2017 at 3:09 PM, Alejandro Hernandez
<alejandro.hernandez@linux.intel.com> wrote:
> The original initramfs-live-boot recipe RDEPENDS on udev, which is ok since
> the init script relies some of its functionality on udevadm and such,
> but on core-image-tiny-initramfs the init script simply drops to shell
> after a basic setup, so udev is not needed.
>
> This patch splits up an initramfs-live-boot-tiny recipe which does not
> use udev, but uses busybox-mdev instead, eudev installed about 600
> extra Kilobytes to core-image-tiny-initramfs userspace, by avoiding to
> install eudev we achieve an even smaller footprint (almost 40% smaller).
>
> Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
It'd be nice if you could migrate to initramfs-framework as it
provides mdev module and has part of this already done.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe
2017-11-22 20:42 ` Otavio Salvador
@ 2017-11-22 22:49 ` Alejandro Hernandez
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Hernandez @ 2017-11-22 22:49 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
Certainly, I can set that up as one of my ToDo features for this release.
On 11/22/2017 02:42 PM, Otavio Salvador wrote:
> On Wed, Nov 22, 2017 at 3:09 PM, Alejandro Hernandez
> <alejandro.hernandez@linux.intel.com> wrote:
>> The original initramfs-live-boot recipe RDEPENDS on udev, which is ok since
>> the init script relies some of its functionality on udevadm and such,
>> but on core-image-tiny-initramfs the init script simply drops to shell
>> after a basic setup, so udev is not needed.
>>
>> This patch splits up an initramfs-live-boot-tiny recipe which does not
>> use udev, but uses busybox-mdev instead, eudev installed about 600
>> extra Kilobytes to core-image-tiny-initramfs userspace, by avoiding to
>> install eudev we achieve an even smaller footprint (almost 40% smaller).
>>
>> Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
> It'd be nice if you could migrate to initramfs-framework as it
> provides mdev module and has part of this already done.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-22 22:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-22 17:09 [PATCH] initramfs-live-boot-tiny: Create the initramfs-live-boot-tiny recipe Alejandro Hernandez
2017-11-22 20:42 ` Otavio Salvador
2017-11-22 22:49 ` Alejandro Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox