summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/creator.py
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-10-21 14:30:36 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-15 16:01:33 +0000
commitc7b9611ad0ead17a624fc73a60c321ff249c2214 (patch)
treeba6dc16ba2aeeb3a3b824afc284f3fed685bc8ba /scripts/lib/wic/creator.py
parent93d79fc162bd49387958e9e4d898dc4ba50d20b0 (diff)
downloadopenembedded-core-c7b9611ad0ead17a624fc73a60c321ff249c2214.tar.gz
openembedded-core-c7b9611ad0ead17a624fc73a60c321ff249c2214.tar.bz2
openembedded-core-c7b9611ad0ead17a624fc73a60c321ff249c2214.zip
image.bbclass: avoid boot error on read-only systemd image
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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/creator.py')
0 files changed, 0 insertions, 0 deletions