Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • rootfs is populated by unpacking a .cpio archive that is combined with the kernel. What frees the original .cpio archive after it is unpacked? I can't find the code. Deleting the content of the unpacked rootfs isn't the same thing. Commented Feb 6, 2019 at 22:14
  • rootfs isn't always populated by an archive embedded within the kernel. It can be an external file. However that said, while I don't know exactly how the kernel handles this, there is nothing that forces the kernel to remain in memory. The kernel controls the memory, it can do whatever it wants. If it wants to release the portion of memory used by the image, it can. Commented Feb 8, 2019 at 3:38