mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
f3b2306bea
Currently gen_init_cpio -d <timestamp> is applied to symlinks,
directories and special files. These files are created by
gen_init_cpio from their description. Without <timestamp> option
current time(NULL) is used. And regular files that go in initramfs
are created before cpio generation, so their mtime(s) are preserved.
This is usually not an issue as reproducible builds should rebuild
everything in the distribution, including binaries, configs and whatever
other regular files may find their way into kernel's initramfs.
On the other hand, gen_initramfs.sh usage claims:
> -d <date> Use date for all file mtime values
Ar Arista initramfs files are managed with version control system
that preserves mtime. Those are configs, boot parameters, init scripts,
version files, platform-specific files, probably some others, too.
While it's certainly possible to work this around by copying the file
into temp directory and adjusting mtime prior to gen_init_cpio call,
I don't see why it needs workarounds.
The intended user of -d <date> option is the one that needs to create
a reproducible build, see commit
|
||
---|---|---|
.. | ||
dummy-include | ||
include | ||
.gitignore | ||
default_cpio_list | ||
gen_init_cpio.c | ||
gen_initramfs.sh | ||
initramfs_data.S | ||
Kconfig | ||
Makefile |