]> Gentwo Git Trees - linux/.git/commit
gen_init_cpio: support -o <output_file> parameter
authorDavid Disseldorp <ddiss@suse.de>
Tue, 19 Aug 2025 03:05:45 +0000 (13:05 +1000)
committerNathan Chancellor <nathan@kernel.org>
Wed, 20 Aug 2025 23:02:55 +0000 (16:02 -0700)
commitae18b94099b04264b32e33b057114024bc72c993
tree7f6c3d0c4887cdb626b7fd23d37c5cbc173be09f
parent1400227773201918f270dda48f20afcd613d9bc3
gen_init_cpio: support -o <output_file> parameter

This is another preparatory change to allow for reflink-optimized
cpio archives with file data written / cloned via copy_file_range().
The output file is truncated prior to write, so that it maps to
usr/gen_initramfs.sh usage. It may make sense to offer an append option
in future, for easier archive concatenation.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250819032607.28727-3-ddiss@suse.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
usr/gen_init_cpio.c