From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?U3RlZmFuIEZyw7ZiZXJn?= Date: Wed, 23 Jan 2013 18:05:54 +0200 Subject: [Buildroot] Squashfs boot In-Reply-To: <20130123165719.2d62382c@skate> References: <50FE8914.30909@petroprogram.com> <50FED12F.4050209@petroprogram.com> <20130123165719.2d62382c@skate> Message-ID: <51000A62.9090309@petroprogram.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 23.1.2013 17:57, Thomas Petazzoni kirjoitti: > Dear Stefan Fr?berg, > > On Tue, 22 Jan 2013 19:49:35 +0200, Stefan Fr?berg wrote: >> It's true that you can use squashfs to compress whole system but even >> in that case you have to >> make your own init script that will take care of all the magic of >> mounting. And because squashfs is read-only filesystem then it get's >> more trickier because you have to take care >> of yourself of all those /tmp and /var/log etc.. directories that need >> to store temporarily stuff. > Huh? Mounting a squashfs filesystem as the root filesystem is very > easy. Just use root=/dev/ and that's it. > > Buildroot already mounts a tmpfs in /tmp and has several symlinks > from /var/ to /tmp. > > So, with the basic default Buildroot configuration, there is absolutely > nothing complicated in having the entire root filesystem read-only > inside SquashFS. On several projects, I've generated a system with > Buildroot where the entire filesystem is read-only mounted. No problem > at all. > > I think your solution is much more complex than just having the entire > root filesystem read-only. > > Best regards, > > Thomas No. What I meant was, that if he is going to make it *without* buildroot (that is, if he can't get buildroot generated squashfs root to boot). *Then* he has to make his own init stuff to mount those /tmp and /var/log. And my own solution is overly complex because I want the ability to write to squashfs, even if just temporarily. That's why I use initramfs + squashfs + unionfs Regards Stefan