[OE-core] [PATCH 0/2] Create systemd users at build time

Stephano Cetola stephano.cetola at linux.intel.com
Mon May 9 23:28:34 UTC 2016


Systemd has a config option sysusers which creates any users or groups that
systemd needs on first boot. There is a rootfs-postcommand that creates these
users in case the filesystem is readonly, however it does not take into
account any staicids that the user may have set.

By adding these users at build time, we allow a check for staticids, which would
otherwise have been skipped.

This issue was initially raised by a fix that was added to Ostro OS. See
Patrick's comments for more info on that.

[ YOCTO #9497 ]

Stephano Cetola (2):
  systemd: add sysusers config option to defaults
  systemd: add users/groups at build rather than runtime

 meta/classes/rootfs-postcommands.bbclass | 66 +++++++++++++++++++++-----------
 meta/classes/useradd-staticids.bbclass   | 56 +--------------------------
 meta/recipes-core/systemd/systemd_229.bb |  4 +-
 useradd-staticids-list.bbclass           | 56 +++++++++++++++++++++++++++
 4 files changed, 103 insertions(+), 79 deletions(-)
 create mode 100644 useradd-staticids-list.bbclass

-- 
2.8.0




More information about the Openembedded-core mailing list