Skip to content

Commit

Permalink
fix(dracut.sh): make uki's reproducible
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
glance- authored and Conan-Kudo committed Apr 8, 2024
1 parent 3b9054a commit aabb5a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")} \
Expand Down

0 comments on commit aabb5a4

Please sign in to comment.