diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-05-24 15:38:54 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-05-24 15:38:54 +0100 |
commit | 74c54461cbb67e5ba20fc8119982a09121221853 (patch) | |
tree | 89504ad45203f10f2b0ce54bc2ec7bf63ff30c90 | |
parent | 0d68d71519153407670c72bc7520d2de2d6841e3 (diff) | |
download | ipxe-74c54461cbb67e5ba20fc8119982a09121221853.zip ipxe-74c54461cbb67e5ba20fc8119982a09121221853.tar.gz ipxe-74c54461cbb67e5ba20fc8119982a09121221853.tar.bz2 |
[build] Use SOURCE_DATE_EPOCH for isohybrid MBR ID if it exists
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-x | src/util/genfsimg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg index 3c8b0c8..1635a11 100755 --- a/src/util/genfsimg +++ b/src/util/genfsimg @@ -307,7 +307,11 @@ if [ -n "${ISOIMG}" ] ; then -publisher "ipxe.org" -sysid "iPXE" -o "${ISOIMG}" \ ${ISOARGS} "${ISODIR}" if isohybrid --version >/dev/null 2>&1 ; then - isohybrid "${ISOIMG}" + ISOHYBRIDARGS= + if [ -n "${SOURCE_DATE_EPOCH:-}" ] ; then + ISOHYBRIDARGS="${ISOHYBRIDARGS} --id ${SOURCE_DATE_EPOCH}" + fi + isohybrid ${ISOHYBRIDARGS} "${ISOIMG}" fi fi |