Re: [RFC] initoverlayfs - a scalable initial filesystem

Askar Safin <[email protected]> Tue, 19 Dec 2023 00:59:11 +0300
Newsgroups org.kernel.vger.initramfs
Message-ID <CAPnZJGCPd7Z4PYkNf8ES1t0ZBE=p2Lny6HKzhqNmyfq5UGw0+g@mail.gmail.com>
Hi. Unfortunately, this is not clear enough from
https://github.com/containers/initoverlayfs how exactly the
second-stage early filesystem is mounted. So, please, add that
information to README. Let me describe how I understand this.

First, init program from (small) first-stage early filesystem mounts
boot/ESP partition, where second-stage early filesystem image (i. e.
erofs) is located. Then that init program mounts that erofs image.
Without copying the whole erofs image into memory. In other words, if
some part of erofs image is not accessed, then not only it is not
uncompressed, it even is not loaded from disk to memory at all. Is my
understanding correct?

-- 
Askar Safin