diff options
| author | Vyacheslav Yurkov <uvv.mail@gmail.com> | 2021-11-19 22:05:39 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-15 07:40:29 +0000 |
| commit | 8eee0062a7a036d0594dff193995ac7914c6124b (patch) | |
| tree | c734f84c5fa52cc2d90524e90554a9d8b4960e85 /meta/classes | |
| parent | c3023e3cf68b5afc45e4c80a5aa61c4f3a62b65e (diff) | |
| download | poky-8eee0062a7a036d0594dff193995ac7914c6124b.tar.gz | |
rootfs-postcommands: update systemd_create_users
Process all systemd-sysusers configuration files in order to create
users/groups at build time. systemd-sysusers would try to create them at
run-time, but for read-only rootfs that's not possible and results in
warnings from different services:
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:39 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring
systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:42 Unknown group 'sgx', ignoring
(From OE-Core rev: a94e622f222253c6646f1a1157f918d8aa586866)
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f86ffdb1b77c6ba32ec250545a40c1c54f983f21)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index e66ed5938b..87b5751e24 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
| @@ -60,7 +60,7 @@ python () { | |||
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | systemd_create_users () { | 62 | systemd_create_users () { |
| 63 | for conffile in ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd.conf ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd-remote.conf; do | 63 | for conffile in ${IMAGE_ROOTFS}/usr/lib/sysusers.d/*.conf; do |
| 64 | [ -e $conffile ] || continue | 64 | [ -e $conffile ] || continue |
| 65 | grep -v "^#" $conffile | sed -e '/^$/d' | while read type name id comment; do | 65 | grep -v "^#" $conffile | sed -e '/^$/d' | while read type name id comment; do |
| 66 | if [ "$type" = "u" ]; then | 66 | if [ "$type" = "u" ]; then |
