From aabb5a4106295c6d3234215ab30f8dc2fb93eed7 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 14 Jun 2023 13:51:34 +0200 Subject: [PATCH] fix(dracut.sh): make uki's reproducible If the user asks for the dracut output to be reproducible, we should ensure objcopy produces a reproducible uki to. Signed-off-by: Anton Lundin --- dracut.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut.sh b/dracut.sh index a0af3dd26..c71285e75 100755 --- a/dracut.sh +++ b/dracut.sh @@ -2562,6 +2562,7 @@ if [[ $uefi == yes ]]; then objcopy --remove-section .sbat "$tmp_uefi_stub" &> /dev/null if objcopy \ + ${DRACUT_REPRODUCIBLE:+--enable-deterministic-archives --preserve-dates} \ ${uefi_osrelease:+--add-section .osrel="$uefi_osrelease" --change-section-vma .osrel=$(printf 0x%x "$uefi_osrelease_offs")} \ ${uefi_cmdline:+--add-section .cmdline="$uefi_cmdline" --change-section-vma .cmdline=$(printf 0x%x "$uefi_cmdline_offs")} \ ${uefi_splash_image:+--add-section .splash="$uefi_splash_image" --change-section-vma .splash=$(printf 0x%x "$uefi_splash_offs")} \