I have been using Arch Linux for a while and studying about the initramfs. I thought of looking into the contents of the file to get a clear idea of it. I googled for various ways to peek through the file but I was not able to.
Initially, I checked the file type of initramfs using the below command and got the following output:
file /boot/initramfs-linux.img
/boot/initramfs-linux.img: Zstandard compressed data (v0.8+), Dictionary IS: None
I found that the file was Zstandard compressed and used the zstd tool to fetch the content of the file as follows:
zstd -d /boot/initramfs-linux.img -o SOME_FILE_NAME
That yielded gibberish result. I gave a file name as it's argument since it complained when I gave a directory.
I thought that the initramfs file contains the initial root file system (set of files and directories).
I am naive to Arch Linux and it's internals. Kindly help me through this.
Thanks.