Codebase list mdadm / 04adb52
Use a reproducible timestamp in mkconf; delete temporary file in initramfs. (Closes: #982607) Fixes two issues when building the Debian live images: [1] a) mkconf adds a timestamp to the generated configuration file, which is made reproducible herein via $SOURCE_DATE_EPOCH, if needed. b) The initramfs hook leaves a temporary file, which is hereby deleted. Authorship was granted in Git. Thank you to Roland Clobus for the patch! [1] https://wiki.debian.org/ReproducibleInstalls/LiveImages Roland Clobus authored 2 years ago Felix Lechner committed 2 years ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9292 tmpfile="${DESTMDADMCONF}.tmp"
9393 if /usr/share/mdadm/mkconf > $tmpfile; then
9494 cp -p $tmpfile $DESTMDADMCONF
95 rm -f $tmpfile
9596 else
9697 warn "failed to auto-generate temporary mdadm.conf file."
9798 fi
9494 fi
9595 fi
9696
97 echo "# This configuration was auto-generated on $(date -R) by mkconf"
97 if [ -z $SOURCE_DATE_EPOCH ]; then
98 echo "# This configuration was auto-generated on $(date -R) by mkconf"
99 else
100 echo "# This configuration was auto-generated on $(date -R --utc -d@$SOURCE_DATE_EPOCH) by mkconf"
101 fi
98102
99103 exit $error