Transferring the root filesystem to the target
After creating a skeleton root filesystem in your staging directory, the next step is to transfer it to the target. There are three possibilities:
- initramfs: This is a filesystem image that is loaded into RAM by the bootloader. Ramdisks are easy to create and have no dependencies on mass storage drivers. They can be used in fallback maintenance mode when the main root filesystem needs updating. They can even be used as the main root filesystem in smaller embedded devices. Ramdisks are also commonly used as the early user space in mainstream Linux distributions. Remember that the contents of a root filesystem on ramdisk are volatile, so any changes made to the root filesystem at runtime are lost when the system reboots. You need another storage type to store permanent data such as configuration parameters.
- disk image: A copy of the root filesystem that is formatted and ready to be loaded onto a mass storage device on the...