From: Anton Lundin Date: Wed, 14 Jun 2023 11:51:34 +0000 (+0200) Subject: fix(dracut.sh): make uki's reproducible X-Git-Tag: 102~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aabb5a4106295c6d3234215ab30f8dc2fb93eed7;p=thirdparty%2Fdracut-ng.git 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 --- 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")} \