1

Does initramfs use /etc/fstab?

view story
linux-howto

http://unix.stackexchange.com – The way I understand it, initramfs is responsible for loading the "real" root filesystem. Now, there are two places where we define that root. First we put an entry in /etc/fstab. Second, we put the device on the kernel boot commands e.g. root=/dev/sda1. Which one does initramfs use to determine where is the root filesystem? If it uses the root kernel parameter, why do we have an entry in /etc/fstab? The second option, (it reads /etc/fstab), is quite illogical because the /etc/fstab file is on the very root device that initramfs is trying to mount in the first place. Very confusing stuff (HowTos)