Skip to contentSkip to conversation

Purpose and status of core-image-tiny-initramfs

DISCUSSION Francesco Valla 2 participants 2 messages Nov 25

lore
Share & tools
lore
#0 lore raw

Hello,

a couple of days ago I was searching for a small initramfs image to do quick-and-dirty kernel testing and I stumbled upon core-image-tiny-initramfs, which I never heard of. Attracted by the name I tried to build it, but I received a build error that stated that busybox-mdev was not found. I then opened the recipe and found that:

- it contains VIRTUAL-RUNTIME_dev_manager ?= busybox-mdev, but since this assignment is only local, it does not propagate upwards (rightfully!);
- it then tries to install ${VIRTUAL-RUNTIME_dev_manager}, which in my case solves as busybox-mdev, since I have INIT_MANAGER = "systemd";
- it also tries to install initramfs-live-boot-tiny, being its only in-tree consumer, that RDEPENDS directly on busybox-mdev.

While I understand the behavior, I cannot say the same for the purpose. Digging a bit, and judging from comments here and there, I believe this is a somewhat old recipe used to obtain the smallest bootable initramfs able to arrive to a shell. Such an image would be very useful for my activities... if only it was building :)

Question: may I propose some changes for the entire setup, maybe dropping entirely initramfs-live-boot-tiny and depending only on initramfs-boot (less to maintain is better, after all) or is someone depending on this exact setup?

Thank you in advance.

Best regards,
Francesco

#1 lore raw
Quoted 4 lines · Francesco Valla via openembedded-core

Question: may I propose some changes for the entire setup, maybe dropping entirely initramfs-live-boot-tiny and depending only on initramfs-boot (less to maintain is better, after all) or is someone depending on this exact setup?

I don't think anyone is, given that it does not build, is not tested, and has nothing depending on it. If you can propose improvements and cleanups, please go ahead.

Alternatively, you can fix up the image if you think it's useful, and add tests for it. You can review the following to see where the tests could fit:

meta/lib/oeqa/selftest/cases/uboot.py
meta/lib/oeqa/selftest/cases/wic.py
meta/lib/oeqa/selftest/cases/uki.py

Alex