]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: avoid boot error on read-only systemd image
authorChen Qi <Qi.Chen@windriver.com>
Tue, 21 Oct 2014 06:30:36 +0000 (14:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Dec 2014 17:48:58 +0000 (17:48 +0000)
commit2501c2f03f24fbbefd9999dd444318704d8aa8c2
tree29ed69930b1a8fd899fc75ee978dc259f9cc9abf
parentebc185186c36fe839008d94dbfb779383df960c7
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>
meta/classes/image.bbclass