[build] Use SOURCE_DATE_EPOCH for isohybrid MBR ID if it exists

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/373/head
Michael Brown 2021-05-24 15:38:54 +01:00
parent 0d68d71519
commit 74c54461cb
1 changed files with 5 additions and 1 deletions

View File

@ -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