]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Use SOURCE_DATE_EPOCH for isohybrid MBR ID if it exists
authorMichael Brown <mcb30@ipxe.org>
Mon, 24 May 2021 14:38:54 +0000 (15:38 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 24 May 2021 14:38:54 +0000 (15:38 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg

index 3c8b0c898e29c012b4a2c0e77822821a29039587..1635a11acb8258566c1bfed949eac6c28cfc761d 100755 (executable)
@@ -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