fs/cpio: make cpio rootfs reproducible
authorAtharva Lele <itsatharva@gmail.com>
Tue, 16 Jul 2019 17:35:18 +0000 (23:05 +0530)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Jul 2019 06:53:03 +0000 (08:53 +0200)
commitfd544aaebbaad9d8d3631d58f988227fada0a3db
tree87747e0248b33d7f27d19d2b8002ed3e6258b602
parent48f2f4dd8e4a54dcbfcda947c6ced724c77841c2
fs/cpio: make cpio rootfs reproducible

Pass the recommended argument in the CPIO manual to make cpio archives
reproducible.

Reference: https://www.gnu.org/software/cpio/manual/cpio.html#Copy_002dpass-mode

Pre-patch diffoscope output: https://gitlab.com/snippets/1874745
Post-patch: https://gitlab.com/snippets/1874746

We can see that post-patch, the archive related differences are removed.
The differences are arising from utils/bin/getconf. This will have to
be investigated further. However, that is unrelated to cpio.

Signed-off-by: Atharva Lele <itsatharva@gmail.com>
Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
fs/cpio/cpio.mk