2025-08-28 –, Studio 1
The current way of generating initramfs images involves creating a separate image recipe and building that, in theory, can have nothing in common with the main rootfs. That makes it virtually impossible to recreate it on-target when doing package based updates.
The current way of generating initramfs images involves creating a separate image recipe and building that, in theory, can have nothing in common with the main rootfs. That makes it virtually impossible to recreate it on-target when doing package based updates. On some platforms this means that something as simple as updating the kernel commandline requires a roundtrip to bitbake and re-flashing the image.
This talk will show how Dracut, an existing tool used by Fedora, can be used both during the build as well as on the target to generate an initramfs without needing a separate recipe for that.
The resulting initramfs will be compared against the current way of working to see if it actually improves things and is a solution to the problem statement.
Using Dracut will also allow us to run systemd in the initramfs and hand over control to systemd in the rootfs!