How is the size of init ram disk determined when initramfs is used?

Chan Kim ckim at etri.re.kr
Thu Oct 6 22:32:35 EDT 2022


Hello all,

I'm using initramfs.cpio.gz for initial file system image.
I embed it in the kernel Image file.
After linux boots, when I'm in the shell, I can create files.
But I'm curious how much the file system can grow.
I remember somewhere reading that the initramdisk is made and the initramfs
archive is extracted in the ramdisk.
Then how is the ramdisk size determined? During the build usig Kconfig
variable, or does it dynamically grow?
Thanks in advance.

Chan Kim







More information about the Kernelnewbies mailing list