Skip to content
Snippets Groups Projects
Commit 4bdda15e authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: work around two more files kept by debootstrap


Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 06f47311
No related branches found
No related tags found
No related merge requests found
......@@ -61,10 +61,14 @@ for LOOP in "first" "second" ; do
mmdebstrap) sudo $REALTOOL $SUITE > $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}.tar
;;
debootstrap) sudo $REALTOOL $SUITE $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
for i in /var/log/bootstrap.log /var/log/dpkg.log /var/log/alternatives.log ; do
for LOGFILE in /var/log/bootstrap.log /var/log/dpkg.log /var/log/alternatives.log ; do
output_echo "Warning: modifying $TOOL result, deleting unreproducible logfile $LOGFILE"
sudo rm -rf --one-file-system $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}/$LOGFILE
done
for FILE in /etc/machine-id /var/cache/ldconfig/aux-cache ; do
output_echo "Warning: modifying $TOOL result, deleting unreproducible file $FILE because it will be created as needed"
sudo rm -rf --one-file-system $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}/FILE
done
sudo tar --mtime="@$SOURCE_DATE_EPOCH" --clamp-mtime -C $BUILDDIR/$SUBDIR/${TOOL}/ -cf $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}.tar ${SUITE}
sudo rm -rf --one-file-system $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment