dracut: Create reproducible images
authorJoão Paulo Rechi Vita <jprvita@endlessm.com>
Sat, 27 Jun 2020 01:28:48 +0000 (18:28 -0700)
committerJoão Paulo Rechi Vita <jprvita@endlessm.com>
Thu, 13 Aug 2020 15:32:18 +0000 (08:32 -0700)
Without reproducible images, a rebuild of the initrd will create a
different image file (due to things like creation time of the files in
the cpio archive) even if the actual contents in it are exactly the
same, adding an unnecessary download during updates.

Adding 'reproducible=yes' avoids this and creates the same image files
for the same content.

src/boot/dracut/ostree.conf

index 612bb435d2f0ee1939d9b4812c7ba6c3c63d620d..ac70494b4487be952b9c29751dbb3d99f1bfaaa6 100755 (executable)
@@ -16,3 +16,4 @@
 # Boston, MA 02111-1307, USA.
 
 add_dracutmodules+=" ostree systemd "
+reproducible=yes