Patchwork [V3,0/4] read-only rootfs support

mail settings
Date Dec. 27, 2012, 2:57 a.m.
Message ID <>
Download mbox
Permalink /patch/41697/
State New
Headers show


git:// ChenQi/readonly-rootfs

Comments - Dec. 27, 2012, 2:57 a.m.
From: Chen Qi <>

The series of patches add support to read-only rootfs.

The main idea is to use symbolic links to create the illuion that some
directories are writable in case of a read-only rootfs.

This set of patches have been tested on minimal images with and without
'read-only-rootfs' image feature enabled. Everything is OK.

For sato images, everything is the same as before if 'read-only-rootfs' is not enabled.
With 'read-only-rootfs' enabled, sato image could work if graphic interface is diabled.
When all postinstall problems are resolved, sato image should work well (maybe with some
small changes in volatiles-readonly-sato conf file).

The following changes since commit 90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a:

  rootfs_rpm.bbclass: remove debug code (2012-12-19 21:43:55 +0000)

are available in the git repository at:

  git:// ChenQi/readonly-rootfs

Chen Qi (4):
  sysvinit: add ROOTFS_READ_ONLY variable to rcS-default
  image.bbclass: add two hook funtions to support read-only rootfs
  core-image.bbclass: support read-only-rootfs image feature
  initscripts: support read-only rootfs

 meta/classes/core-image.bbclass                    |    7 +-
 meta/classes/image.bbclass                         |   29 ++
 .../initscripts/initscripts-1.0/        |    9 +-
 .../initscripts-1.0/           |  281 ++++++++++----------
 .../initscripts/initscripts-1.0/volatiles          |    1 +
 .../initscripts-1.0/volatiles-readonly-minimal     |    8 +
 .../initscripts-1.0/volatiles-readonly-sato        |   14 +
 meta/recipes-core/initscripts/   |   11 +-
 meta/recipes-core/sysvinit/sysvinit/rcS-default    |    4 +
 meta/recipes-core/sysvinit/     |    2 +-
 10 files changed, 210 insertions(+), 156 deletions(-)
 create mode 100644 meta/recipes-core/initscripts/initscripts-1.0/volatiles-readonly-minimal
 create mode 100644 meta/recipes-core/initscripts/initscripts-1.0/volatiles-readonly-sato