]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
image_types: Fix reproducible builds for initramfs and UKI img
authorFrieder Paape <frieder@konvera.io>
Mon, 5 Jun 2023 09:00:33 +0000 (09:00 +0000)
committerSteve Sakoman <steve@sakoman.com>
Wed, 5 Jul 2023 16:29:07 +0000 (06:29 -1000)
commit0d8890f7c1fbea5036acefa3031dcd442b316725
treea2a4a7dcab6240aac0617a97e4935d30cfe1549e
parentb842b8b51e0819eebf1fb3a2359b8c06863e553a
image_types: Fix reproducible builds for initramfs and UKI img

I've encountered issues reproducing initramfs and UKI image builds,
which will be fixed with this patch.

1. initramfs
There's a symbolic link to /sbin/init, which is appended to the cpio archive after creation.
The links timestamp needs to be static and the cpio append command needs the '--reproducible' flag to produce deterministic outcomes.

2. Unified Kernel Image
'--preserve-dates' is required for a static 'Time/Date' entry.
I've added '--enable-deterministic-archives' although in my case this
didn't change anything.

Signed-off-by: Frieder Paape <frieder@konvera.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fd027729bafb4e085ba0949e38e724f3a8cad102)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/image_types.bbclass
scripts/lib/wic/plugins/source/bootimg-efi.py