Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id 69C97731C7 for ; Mon, 9 May 2016 23:41:27 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 09 May 2016 16:41:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,602,1455004800"; d="scan'208";a="949592045" Received: from unknown (HELO yocto-dev86.jf.intel.com) ([10.7.198.63]) by orsmga001.jf.intel.com with ESMTP; 09 May 2016 16:41:27 -0700 From: Stephano Cetola To: openembedded-core@lists.openembedded.org Date: Mon, 9 May 2016 16:42:24 -0700 Message-Id: <1462837346-27095-1-git-send-email-stephano.cetola@linux.intel.com> X-Mailer: git-send-email 2.8.0 Subject: [PATCH v2 0/2] Create systemd users at build time X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 23:41:29 -0000 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