Files
openwrt/include
John Crispin 3a16a57c08 kernel: keep /init out of the root filesystem images
The initramfs step copied /init into the root filesystem directory and
never removed it again. With CONFIG_TARGET_PER_DEVICE_ROOTFS the
initramfs kernel and the rootfs image of a device come from that same
directory. Nothing orders the two steps, so /init entered the squashfs
image or not, depending on which step ran first. The reproducible build
service reports this as a difference between the published image and a
rebuild.

Add /init to the initramfs from outside the root filesystem instead. A
built in initramfs gets it through a gen_init_cpio list file. A separate
cpio gets it appended to the finished archive. The mode is now fixed at
0755 and no longer follows the umask of the checkout.

The initramfs step also normalised the mtime of the root filesystem
directory. Do that in prepare_rootfs, so no step writes to the directory
after the image build can start.

Signed-off-by: John Crispin <john@phrozen.org>
2026-09-22 18:46:30 +02:00
..
2026-02-17 01:29:57 +01:00
2021-02-05 14:54:47 +01:00
…
…
2024-12-02 19:30:22 +00:00
2022-11-27 00:52:06 +01:00
2025-10-20 00:55:06 +02:00
…
…
2021-10-24 18:20:50 +02:00