Skip to content
Commit 0d8890f7 authored by Frieder Paape's avatar Frieder Paape Committed by Steve Sakoman
Browse files

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: default avatarFrieder Paape <frieder@konvera.io>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit fd027729)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent b842b8b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment