[Buildroot] buildroot with SquashFS root file system

Peter Korsgaard jacmet at uclibc.org
Thu Dec 8 10:48:14 UTC 2011


>>>>> "Emmanuel" == Emmanuel BOUAZIZ <ebouaziz at neotion.com> writes:

Hi,

 Emmanuel> Yes it's enabled. I've put that same mechanism in squashfs
 Emmanuel> (modified fs/squashfs/squashfs.mk and added fs/squashfs/init)
 Emmanuel> and added init=/init in kernel parameters but the /init
 Emmanuel> script is not run.

Initrd uses /linuxrc, not /init.

 Emmanuel> The only remaining problem is that the whole filesystem is
 Emmanuel> read-only despite the 'rw' including /var and /tmp.

That's because you're using squashfs. Squashfs is a readonly
filesystem. Either move to initramfs or use ext2 in your initrd.

/tmp should be a tmpfs though (check /etc/fstab), and most of /var
symlinks to /tmp/.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list