Re: [PATCH 0/2] Move tool for generating initramfs cpio to scripts/
From: Askar Safin
Date: Mon Mar 09 2026 - 22:02:38 EST
I like this patchset.
Rob (CC'd), does this solve your problem?
Also, in [1] I said:
> command
> "make usr/gen_init_cpio" doesn't work in clean kernel tree even if
> config exists (I checked this)
Now I tested this again, and I see that "make usr/gen_init_cpio" indeed
doesn't work in current mainline in that scenario, but
"cd usr; make gen_init_cpio" works (how I supposed to know this?).
So, problems in [1] are not as big as I thought. You don't need to build
whole kernel two times in that scenario. But still I like this your
new patchset.
Also, I think that top-level "usr" directory exists as a placeholder for
klibc-init project (this is merely my hypothesis, I don't know for sure).
I. e. it was supposed to contain source for userspace init program, which
was supposed to be put into default initramfs.
But klibc-init project, unfortunately, seems to fail. So, I think we should
remove whole top level "usr" directory and move its contents to other places.
[1] https://lore.kernel.org/all/20260220191150.244006-1-safinaskar@xxxxxxxxx
--
Askar Safin