From: Michael S. Zick <minimod@morethan.org>
To: buildroot@busybox.net
Subject: [Buildroot] buildroot with SquashFS root file system
Date: Thu, 8 Dec 2011 08:27:01 -0600 [thread overview]
Message-ID: <201112080827.03828.minimod@morethan.org> (raw)
In-Reply-To: <4EE09ED3.5060102@neotion.com>
On Thu December 8 2011, Emmanuel BOUAZIZ wrote:
>
> On 12/08/2011 11:48 AM, Peter Korsgaard wrote:
>
> > 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/.
> >
>
> Oh that's rigth, it's writable, I mixed with another directory that I wanted to write to (/usr/local). I mounted it as
> tmpfs too and everything's fine now. Thanks a lot for your help :)
>
> Well, I'll switch back to initramfs anyway since it's less tricky.
>
You do not have to put your entire run-time file system in the initramfs,
only what you need to establish the full run-time file system.
I.E: Your full run-time file system can remain as a squashfs file.
You just have to provide the "init" scripting to get it loaded and
mounted while in the early user space of the initramfs.
See: EarlyUserSpace in the kernel documentation tree;
and maybe look at how some "LiveCD" systems handle the setup.
Mike
> regards,
next prev parent reply other threads:[~2011-12-08 14:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 15:20 [Buildroot] buildroot with SquashFS root file system Emmanuel BOUAZIZ
2011-12-06 15:56 ` Michael S. Zick
2011-12-06 17:59 ` Emmanuel BOUAZIZ
2011-12-06 18:16 ` Michael S. Zick
2011-12-08 10:31 ` Emmanuel BOUAZIZ
2011-12-08 10:48 ` Peter Korsgaard
2011-12-08 11:26 ` Emmanuel BOUAZIZ
2011-12-08 14:27 ` Michael S. Zick [this message]
2011-12-08 17:34 ` Emmanuel BOUAZIZ
2011-12-06 20:29 ` Peter Korsgaard
2011-12-13 17:18 ` Arnout Vandecappelle
2011-12-14 8:40 ` Thomas Petazzoni
2011-12-14 9:01 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201112080827.03828.minimod@morethan.org \
--to=minimod@morethan.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.