diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-10-21 14:03:45 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-10-21 14:23:09 +0800 |
commit | 9170798de4e6bb33f5eef9ea5f51ae9378d2f1a8 (patch) | |
tree | b6f896b0a29bb40c924e286a7ca2764198c00a13 /meta/classes/package_tar.bbclass | |
parent | fcbd1b19383daf5e160a864df1418130da01be28 (diff) | |
download | openembedded-core-contrib-9170798de4e6bb33f5eef9ea5f51ae9378d2f1a8.tar.gz |
image.bbclass: avoid boot error on read-only systemd imageChenQi/systemd-read-only
New version of systemd implements a new feature of updating /etc
or /var when needed at boot. For details, please see link below.
Opointer.de/blog/projects/stateless.html
For now, at boot time, the systemd-sysusers.service would update user
database files (/etc/passwd, /etc/group, etc.) according to the configuration
files under /usr/lib/sysusers.d. This step is necessary for other systemd
services to work correctly. Examples of such services are systemd-resolved
and systemd-tmpfiles-setup.
The problem is that on a read-only file system, that is, if /etc is read-only,
the user database files could not be updated, causing failures of services.
This patch fixes this problem by adding users/groups at rootfs time.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/classes/package_tar.bbclass')
0 files changed, 0 insertions, 0 deletions