summaryrefslogtreecommitdiffstats
path: root/src/util/genfsimg
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-12 14:00:15 +0200
committerSimon Rettberg2024-04-12 14:00:15 +0200
commit98dc341428e247141f120d05fac48c4e144a4c0f (patch)
tree3ebacb37927e338383ac64c2e20eb0b2f820cb85 /src/util/genfsimg
parentMerge branch 'master' into openslx (diff)
parentMerge branch 'ipxe:master' into aqc1xx (diff)
downloadipxe-98dc341428e247141f120d05fac48c4e144a4c0f.tar.gz
ipxe-98dc341428e247141f120d05fac48c4e144a4c0f.tar.xz
ipxe-98dc341428e247141f120d05fac48c4e144a4c0f.zip
Merge branch 'aqc1xx' into openslx
Diffstat (limited to 'src/util/genfsimg')
-rwxr-xr-xsrc/util/genfsimg4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 0c069279..a981a62d 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -269,6 +269,10 @@ if [ -n "${FATIMG}" ] ; then
FATSIZE=$(( FATCYLS * 504 ))
FATARGS="-s 63 -h 16 -t ${FATCYLS}"
fi
+ if [ -n "${SOURCE_DATE_EPOCH:-}" ] ; then
+ FATSERIAL=$(( SOURCE_DATE_EPOCH % 100000000 ))
+ FATARGS="${FATARGS} -N ${FATSERIAL}"
+ fi
truncate -s "${FATSIZE}K" "${FATIMG}"
mformat -v iPXE -i "${FATIMG}" ${FATARGS} ::
mcopy -i "${FATIMG}" -s "${FATDIR}"/* ::