initramfs: add initial emlinux-initramfs-base recipe#626
Conversation
Introduce the emlinux-initramfs-base recipe for the first time. Confirmed it contains the same files as the original initrd. Signed-off-by: Hirotaka Motai <hirotaka.motai@miraclelinux.com>
| # Debian packages that should be install into the system for building the | ||
| # initramfs. | ||
| INITRAMFS_PREINSTALL += " \ | ||
| dmsetup \ |
There was a problem hiding this comment.
do we need dmsetup by default?
There was a problem hiding this comment.
That's because dmsetup was included in the emlinux-bookworm initramfs by default, However, these packages were not present in the emlinux-trixie initramfs.
Since verified filesystem is becoming more common in embedded systems for security, I think we should keep them in unless there's a specific reason not to.
|
@hiromotai7 The *.img file name is changed from emlinux3 branch note: '*.img' files in tmp-orig directory were built with head of emlinux3 branch. |
|
Sorry. I have not verified the boot on Raspberry PI or Generic-x86_64 with new initramfs yet. |
Purpose
Added a new INITRD recipe.
Test
Comfirmed the following:
IMAGE_INITRDis defined in local.conf.Test results
1. Confirming initrd.img creation
Add the following line to local.conf.
Run
bitbake emlinux-image-basetwice:DISTRO = "emlinux-bookworm"in conf/local.confDISTRO = "emlinux-trixie"in conf/local.confconfirmed that the initrd.img was generated and that it uses the name of the INITRD recipe.
${INITRD_RECIPE_NAME}-${DISTRO}-${MACHINE}-initrd.img2. Compare the file list inside initrd.img
The original produces 2 initrd files.
Compared them respectively.
emlinux-bookworm
Ran the following commands for comparison.
No differences found.
emlinux-trixie
Ran the following commands for comparison.
No differences found.
Since the differences are identical to those in the two original files as below and no files were missing, I consider this to be acceptable.