Support initrd#624
Closed
hiromotai7 wants to merge 2 commits intomiraclelinux:emlinux3from
Closed
Conversation
added 2 commits
April 9, 2026 13:18
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>
This commit set the IMAGE_INITRD variable in emlinux-image-base.bb. This ensures the image is now built with the emlinux-initramfs-base initramfs. Signed-off-by: Hirotaka Motai <hirotaka.motai@miraclelinux.com>
ca873bf to
06841a5
Compare
Contributor
|
@hiromotai7 new approach changes initrd's file name from emlinux-image-base-emlinux-bookworm-qemu-amd64-initrd.img to emlinux-initramfs-base-emlinux-bookworm-qemu-amd64-initrd.img. It breaks runqemu command. so, you need to update scripts/runqemu or keep ${IAMGE}-${DISTO}-${MACHINE}-initrd.img style file name. |
Author
|
Thanks and sorry, I overlooked the impact on runqemu. I will open a new one just to add the initramfs recipe (commit 80b1bda only). |
Author
|
Note: new MR is #626. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Added INITRD recipe for emlinux-image-base/weston.
Test
Comfirmed the following:
Test results
1. Confirming initrd.img creation
Add the following line to local.conf.
TMPDIR .= "-${BB_CURRENT_MC}"Run
bitbakeas follows to build:$ bitbake \ mc:qemu-arm64-bookworm:emlinux-image-base \ mc:qemu-arm64-trixie:emlinux-image-base \ mc:qemu-arm64-bookworm:emlinux-image-weston \ mc:qemu-arm64-trixie:emlinux-image-westonconfirmed that the initrd.img was generated and that it uses the name of the INITRD recipe.
emlinux-initramfs-base-emlinux-bookworm-qemu-arm64-initrd.img*
emlinux-initramfs-base-emlinux-trixie-qemu-arm64-initrd.img*
2. Compare the file list inside initrd.img
The original produces 4 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.