1 |
Every directory, which needs to be writable and persistent, needs to be |
2 |
mounted as unionfs or AUFS, with one branch in read-only partition, and the |
3 |
second one somewhere in /var. It's good to mount /etc that way and place |
4 |
the factory defaults in the read-only branch of this. An alternative is to |
5 |
allow only several files in /etc to be writable and move them to someplace |
6 |
in /var (e.g. /var/etc) and leave symlinks in /etc (e.g. /etc/resolv.conf |
7 |
-> /var/etc/resolv.conf). |
8 |
|
9 |
|
10 |
On Wed, Oct 16, 2013 at 2:48 PM, Francisco Ares <frares@×××××.com> wrote: |
11 |
|
12 |
> Hi. |
13 |
> |
14 |
> I am planning to build a system to be deployed in a SATA flash disk, and |
15 |
> most of the file system will be read-only. There will be a tempfs on /temp |
16 |
> and a read-write partition for /var (perhaps a unionfs with the static part |
17 |
> of /var and that read-write partition) |
18 |
> |
19 |
> Is there any resources on how to do this using Gentoo? |
20 |
> |
21 |
> There is already a development system with everything working as expected |
22 |
> on the final system. But when I put it to a squashfs, the system boots with |
23 |
> several errors, like when trying to write to /etc and /var. |
24 |
> |
25 |
> Looking on the new issue regarding /usr and / being on a different |
26 |
> partitions, I have found the file in /etc/initramfs.mounts. I have added |
27 |
> the needed fstab entries to be mounted before the system switches to the |
28 |
> real-root, (as the comments on top of this file claims) but there are |
29 |
> still errors during boot. |
30 |
> |
31 |
> Thanks |
32 |
> Francisco |
33 |
> |