diff options
author | Roland Clobus <rclobus@rclobus.nl> | 2021-02-16 18:23:04 +0100 |
---|---|---|
committer | Roland Clobus <rclobus@rclobus.nl> | 2021-02-16 21:22:12 +0100 |
commit | 2c7c90487addb7f741be24418b5ae1caed51f562 (patch) | |
tree | e319aae320f42853db2a11b92dd4a69508b4b52e /scripts/build/efi-image | |
parent | d7b2d55c8f373a3daff48217d7840219e34956c6 (diff) | |
download | vyos-live-build-2c7c90487addb7f741be24418b5ae1caed51f562.tar.gz vyos-live-build-2c7c90487addb7f741be24418b5ae1caed51f562.zip |
mkfs.msdos needs at most 32 bits for the -i argument.
Use the hexadecimal version of SOURCE_DATE_EPOCH, limited to the lower 32 bits
Diffstat (limited to 'scripts/build/efi-image')
-rwxr-xr-x | scripts/build/efi-image | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build/efi-image b/scripts/build/efi-image index 8831bfa81..bc8ed3a93 100755 --- a/scripts/build/efi-image +++ b/scripts/build/efi-image @@ -75,9 +75,10 @@ grub-mkimage -O "$platform" \ # Stuff it into a FAT filesystem, making it as small as possible. 24KiB # headroom seems to be enough; (x+31)/32*32 rounds up to multiple of 32. +# The VOLID must be (truncated to) a 32bit hexadecimal number mkfs.msdos -C "$outdir/efi.img" \ $(( ($(stat -c %s "$workdir/boot$efi_name.efi") / 1024 + 55) \ - / 32 * 32 )) -i ${SOURCE_DATE_EPOCH} + / 32 * 32 )) -i $(printf "%08x" $((${SOURCE_DATE_EPOCH}%4294967296))) mmd -i "$outdir/efi.img" ::efi mmd -i "$outdir/efi.img" ::efi/boot # Set the timestamp of the .efi file |