Skip to content

Commit

Permalink
release: Sort etcupdate entries before adding them to base metalog
Browse files Browse the repository at this point in the history
Supports reproducible builds.

PR: 283214

Signed-off-by: Pat Maddox <[email protected]>
  • Loading branch information
patmaddox committed Dec 14, 2024
1 parent 005a50c commit f7e2f46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ base.txz:
-s ${WORLDDIR} -d "${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate" \
-L /dev/null -N
echo "./var/db/etcupdate type=dir uname=root gname=wheel mode=0755" >> ${.OBJDIR}/${DISTDIR}/base.meta
sed -n 's,^\.,./var/db/etcupdate/current,p' ${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate/current/METALOG \
>> ${.OBJDIR}/${DISTDIR}/base.meta
sed -n 's,^\.,./var/db/etcupdate/current,p' \
${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate/current/METALOG | \
${METALOG_SORT_CMD} >> ${.OBJDIR}/${DISTDIR}/base.meta
rm ${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate/current/METALOG
# Package all components
( cd ${WORLDDIR} && ${IMAKE} -DNO_ROOT packageworld DISTDIR=${.OBJDIR}/${DISTDIR} )
Expand Down

0 comments on commit f7e2f46

Please sign in to comment.