In this chapter, we will discuss why we really need initramfs and why it’s important in the booting procedure. We know that initramfs is loaded into memory by the bootloader, but we haven’t discussed yet how initramfs is extracted. This chapter will address that. We will also see the steps to extract, rebuild, and customize initramfs. Later, we will see the structure of initramfs as well as the booting sequence of a system inside initramfs.
Why initramfs?
The aim of the booting procedure is to present the user with their own files that reside in the root filesystem. In other words, it is the kernel’s duty to find, mount, ...