Hello OpenEmbedded developers,
 
I am curious if there's been discussion on trying to use dracut to build an initramfs image via bitbake. To be clear, I mean running dracut on the build host machine from a bitbake recipe, and having this dracut use files from the target image rootfs to build the initramfs.
 
Right now in meta-openembedded/meta-initramfs/recipes-devtools it looks like there's a dracut recipe to build dracut for the target arch, but no native dracut recipe. So with the current dracut recipe, this dracut can only be used from an architecture matching the target arch. This is not cross-compatible.
 
There has been a recent improvement in dracut to enable a native dracut to work with cross-compiled binaries. See the merged patch that should go into the next major dracut version 107 which replaces dracut's ldd usage - Parse ELF .note.dlopen entries for dependencies, replace ldd for better cross support by chewi · Pull Request #1260 · dracut-ng/dracut-ng · GitHub
 
If there's no active development on using the latest dracut to build an initramfs, I'd like to work on it. Specifically I want to create a dracut native recipe and a dracut initramfs test image that uses the native dracut and a machine image's rootfs to create an initramfs. I understand this work would be dependent on a newer dracut that's not released yet.
 
What would be the testing expectations that I should run for my patches? Run testimage, as documented in the following? 4 Contributing Changes to a Component — The Yocto Project ® 5.2.999 documentation
 
Thank you,
Eric