mbox series

[0/2] Fix issue around missing initrd on partial rebuilds

Message ID 20260714133422.1792603-1-felix.moessbauer@siemens.com
Headers show
Series Fix issue around missing initrd on partial rebuilds | expand

Message

Felix Moessbauer July 14, 2026, 1:34 p.m. UTC
When working with a in-tree initrd, the generation of the initrd has the
side effect of placing the initrd in /boot as well (in addition to the
deployment to the deploy dir). This part is currently skipped in case
the initrd is taken from the sstate cache, leading to reproducibility
issues of non-wic images (e.g. a rootfs tarball).

While this is just a reproducibility issue on wic images (as the initrd
is anyways replaced by the one from the deploy dir), it is a bug that
breaks booting on non-wic images.

Best regards,
Felix

Felix Moessbauer (2):
  rootfs: make DEPLOYDIR available to all rootfs
  fix(rootfs): generate in-tree initrd as part of image install

 meta/classes-recipe/image.bbclass     |  3 +--
 meta/classes-recipe/initramfs.bbclass | 39 ++++++++++++++++++++++++++-
 meta/classes-recipe/rootfs.bbclass    | 35 +++++-------------------
 3 files changed, 46 insertions(+), 31 deletions(-)

Comments

Quirin Gylstorff July 14, 2026, 2:32 p.m. UTC | #1
On 7/14/26 3:34 PM, Felix Moessbauer wrote:
> When working with a in-tree initrd, the generation of the initrd has the
> side effect of placing the initrd in /boot as well (in addition to the
> deployment to the deploy dir). This part is currently skipped in case
> the initrd is taken from the sstate cache, leading to reproducibility
> issues of non-wic images (e.g. a rootfs tarball).
> 
> While this is just a reproducibility issue on wic images (as the initrd
> is anyways replaced by the one from the deploy dir), it is a bug that
> breaks booting on non-wic images.
> 
> Best regards,
> Felix
> 

Looks good to me. ACK
Quirin
> Felix Moessbauer (2):
>    rootfs: make DEPLOYDIR available to all rootfs
>    fix(rootfs): generate in-tree initrd as part of image install
> 
>   meta/classes-recipe/image.bbclass     |  3 +--
>   meta/classes-recipe/initramfs.bbclass | 39 ++++++++++++++++++++++++++-
>   meta/classes-recipe/rootfs.bbclass    | 35 +++++-------------------
>   3 files changed, 46 insertions(+), 31 deletions(-)
>