summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudius Heine <ch@denx.de>2016-11-22 15:43:28 +0100
committerClaudius Heine <ch@denx.de>2016-11-22 15:43:28 +0100
commit4140a324c3b505f309f01f67a83285ddec1f62e4 (patch)
tree21e7a0debf28a7aca53c341a4f545907cb491250
parent18dfed22a98a6326a6f4fdda620d1efc6066d0b2 (diff)
downloadmeta-readonly-rootfs-overlay-4140a324c3b505f309f01f67a83285ddec1f62e4.tar.gz
Expanded README.md
-rw-r--r--README.md35
1 files changed, 32 insertions, 3 deletions
diff --git a/README.md b/README.md
index 00ed942..daaafc2 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,36 @@
1This README.md file contains information on the contents of the 1# meta-readonly-rootfs-overlay
2readonly-rootfs-overlay layer.
3 2
4Please see the corresponding sections below for details. 3This yocto layer provides the necessary scripts and configurations to setup a
4writable root file system overlay on top of a read-only root filesystem.
5
6## Why does this exists?
7
8Having a read-only root file system is useful for many scenarios:
9
10- Have a unmodifiable factory root file system
11- Seperate user specific changes from system configuration
12- Allow factory reset, by deleting the user specfic changes
13- Have a fallback image in case the user specific changes made the root file
14system no longer bootable.
15
16Because some data on the root file system changes on first boot or while the
17system is running, just mounting the complete root file system as read-only
18breaks many applications. There are different solutions to this problem:
19
20- Symlinking/Bind mounting files and directories that could potentially change
21while the system is running to a writable partition
22- Instead of having a read-only root files system, mounting a writable overlay
23root file system, that uses a read-only file system as its base and writes
24changed data to another writable partition.
25
26To implement the first solution, the developer needs to analyse which file
27needs to change and then create symlinks for them. When doing factory reset,
28the developer "empties" every file that is linked, to avoid dangling
29symlinks/binds. While this is more work on the developer side, it might
30increase the security, because only files that are symlinked/bind-mounted can
31be changed.
32
33This meta-layer provides the second solution.
5 34
6# Dependencies 35# Dependencies
7 36