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 <glance@ac2.se>
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")} \