aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-05-24 15:38:54 +0100
committerMichael Brown <mcb30@ipxe.org>2021-05-24 15:38:54 +0100
commit74c54461cbb67e5ba20fc8119982a09121221853 (patch)
tree89504ad45203f10f2b0ce54bc2ec7bf63ff30c90
parent0d68d71519153407670c72bc7520d2de2d6841e3 (diff)
downloadipxe-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-xsrc/util/genfsimg6
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