Hi, I've been looking into erofs as an initramfs replacement by using root=/dev/ram0 to tell the kernel to load the initramfs as a ramdisk. However, by using a ramdisk instead of the usual compressed cpio, I would lose the feature where the kernel merges multiple individual cpios together into a single tmpfs filesystem. Looking at the documentation for erofs, I noticed that erofs already seems to support merging multiple erofs filesystems on separate block devices using the device= cmdline option. Would it be possible to extend this so that multiple erofs filesystems that follow each other on the same block device can also be merged? This would allow me to pass multiple erofs filesystems to the kernel via initrd=, which would get concatenated together into a single buffer, which the kernel would write to a ramdisk (using root=/dev/ram0) which the kernel would then have erofs mount to /dev/root. erofs would notice that there's multiple erofs filesystems on the ramdisk and overlay them together (perhaps only if a cmdline option is enabled).
Does this make sense at all? Cheers, Daan De Meyer
