Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Create systemd users at build time
@ 2016-05-09 23:42 Stephano Cetola
  2016-05-09 23:42 ` [PATCH v2 1/2] systemd: add sysusers config option to defaults Stephano Cetola
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Stephano Cetola @ 2016-05-09 23:42 UTC (permalink / raw)
  To: openembedded-core

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 ]

Changed since v1:
* added oe-core prefix to subject line

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-05-12 15:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 23:42 [PATCH v2 0/2] Create systemd users at build time Stephano Cetola
2016-05-09 23:42 ` [PATCH v2 1/2] systemd: add sysusers config option to defaults Stephano Cetola
2016-05-09 23:50   ` Khem Raj
2016-05-10  0:24     ` Stephano Cetola
2016-05-09 23:42 ` [PATCH v2 2/2] systemd: add users/groups at build rather than runtime Stephano Cetola
2016-05-09 23:49   ` Khem Raj
2016-05-10  0:55     ` Stephano Cetola
2016-05-10  0:58       ` Khem Raj
2016-05-11 10:46 ` [PATCH v2 0/2] Create systemd users at build time Puustinen, Ismo
2016-05-11 19:04   ` Stephano Cetola
2016-05-12 11:17     ` Puustinen, Ismo
2016-05-12 15:30       ` Stephano Cetola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox