I am trying to mount a squashfs file during initramfs. I have included loop and squashfs modules.
mount /foo.squashfs /mountpoint
mount -t squashfs -o loop /foo.squashfs /mountpoint
Error: block device required.
However, first setting up loop device manually with
losetup /dev/loop0 /foo.squashfs
then mounting with
mount /dev/loop0 /mountpoint is sucessful.
I suspect I am missing a kernel module, but I am not sure.