Re: [PATCH v3 0/2] Move tool for generating initramfs cpio to scripts/

From: Nicolas Schier

Date: Sat Sep 26 2026 - 13:51:54 EST


On Sat, Sep 26, 2026 at 11:34:51AM +0300, Mike Rapoport wrote:
> Hi Nicolas,
>
> On Fri, Sep 25, 2026 at 09:29:29PM +0200, Nicolas Schier wrote:
> > initramfs cpio tools had been subject of several recent discussions on
> > linux-kbuild. Let's get two minor steps forward by enabling a
> > top-level target for building gen_init_cpio w/o the need of a valid
> > kbuild configuration [1] and move the tools for generating the built-in
> > initramfs from usr/ to scripts/ [2].
> >
> > Link: https://lore.kernel.org/all/20260220191150.244006-1-safinaskar@xxxxxxxxx # [1]
> > Link: https://lore.kernel.org/all/aSdrCFkUQup3qb-q@xxxxxxxxxxxxxxxx/ # [2]
> > ---
> > Changes in v3:
> > * Update various remaining usr/gen_init* references treewide (Nathan)
> > * Link to v2: https://patch.msgid.link/20260720-move-gen_init_cpio-to-scripts-v2-0-26b7e15c7133@xxxxxxxxxx
> >
> > Changes in v2:
> > * Build gen_init_cpio only if CONFIG_BLK_DEV_INITRD (Thomas)
> > * Keep underscore top-level target name (scripts_gen_init_cpio)
> > (Thomas)
> > * Link to v1: https://patch.msgid.link/20260309-move-gen_init_cpio-to-scripts-v1-0-0c5059b1ec5b@xxxxxxxxxx
> >
> > ---
> > Nicolas Schier (2):
> > kbuild: Mark usr_gen_init_cpio as no-dot-config-target
> > kbuild: Move gen_init_cpio and gen_initramfs.sh to scripts/
> >
> > .../early-userspace/early_userspace_support.rst | 16 ++++++++--------
> > Documentation/filesystems/ramfs-rootfs-initramfs.rst | 10 +++++-----
> > MAINTAINERS | 1 +
> > Makefile | 9 +++++----
> > scripts/.gitignore | 1 +
> > scripts/Makefile | 3 +++
> > scripts/Makefile.package | 2 +-
> > {usr => scripts}/gen_init_cpio.c | 0
> > {usr => scripts}/gen_initramfs.sh | 2 +-
> > scripts/remove-stale-files | 2 ++
> > scripts/sbom/tests/cmd_graph/test_savedcmd_parser.py | 2 +-
> > tools/testing/selftests/kho/vmtest.sh | 2 +-
>
> There's also tools/testing/selftests/liveupdate/vmtest.sh I know of, didn't
> check for other users in tools/testing
>

No idea how I missed that again; will be adjusted in v4. Thanks a lot!

--
Nicolas