public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grzegorz Borowiak <gborowiak@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] planning a flash DOM x86 embedded system
Date: Thu, 17 Oct 2013 03:46:33 +0200	[thread overview]
Message-ID: <CAMwbjeVAE7d7sfvvrh-8+HTOn90dDjocJNcjs2Sc2DhzafCP4w@mail.gmail.com> (raw)
In-Reply-To: <CAHH9eM5jsLjzif8FWhgqKmfH3WFC8Te4D3J6-ELmfp1kx1Pguw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

Every directory, which needs to be writable and persistent, needs to be
mounted as unionfs or AUFS, with one branch in read-only partition, and the
second one somewhere in /var. It's good to mount /etc that way and place
the factory defaults in the read-only branch of this. An alternative is to
allow only several files in /etc to be writable and move them to someplace
in /var (e.g. /var/etc) and leave symlinks in /etc (e.g. /etc/resolv.conf
-> /var/etc/resolv.conf).


On Wed, Oct 16, 2013 at 2:48 PM, Francisco Ares <frares@gmail.com> wrote:

> Hi.
>
> I am planning to build a system to be deployed in a SATA flash disk, and
> most of the file system will be read-only. There will be a tempfs on /temp
> and a read-write partition for /var (perhaps a unionfs with the static part
> of /var and that read-write partition)
>
> Is there any resources on how to do this using Gentoo?
>
> There is already a development system with everything working as expected
> on the final system. But when I put it to a squashfs, the system boots with
> several errors, like when trying to write to /etc and /var.
>
> Looking on the new issue regarding /usr and / being on a different
> partitions, I have found the file in /etc/initramfs.mounts. I have added
> the needed fstab entries to be mounted before the system switches to the
> real-root, (as the comments on top of this file claims)  but there are
> still errors during boot.
>
> Thanks
> Francisco
>

[-- Attachment #2: Type: text/html, Size: 1921 bytes --]

  reply	other threads:[~2013-10-17  1:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-16 12:48 [gentoo-embedded] planning a flash DOM x86 embedded system Francisco Ares
2013-10-17  1:46 ` Grzegorz Borowiak [this message]
2013-10-17 23:25 ` Gareth McClean
2013-10-18 17:15   ` Francisco Ares
2013-10-20 22:50     ` Gareth McClean
2013-10-22 16:35       ` Francisco Ares
2013-10-22 16:50         ` Francisco Ares
2013-11-06  4:25     ` Rob Landley

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=CAMwbjeVAE7d7sfvvrh-8+HTOn90dDjocJNcjs2Sc2DhzafCP4w@mail.gmail.com \
    --to=gborowiak@gmail.com \
    --cc=gentoo-embedded@lists.gentoo.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox