mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c3023e3cf6
commit
8eee0062a7
@@ -60,7 +60,7 @@ python () {
|
||||
}
|
||||
|
||||
systemd_create_users () {
|
||||
for conffile in ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd.conf ${IMAGE_ROOTFS}/usr/lib/sysusers.d/systemd-remote.conf; do
|
||||
for conffile in ${IMAGE_ROOTFS}/usr/lib/sysusers.d/*.conf; do
|
||||
[ -e $conffile ] || continue
|
||||
grep -v "^#" $conffile | sed -e '/^$/d' | while read type name id comment; do
|
||||
if [ "$type" = "u" ]; then
|
||||
|
||||
Reference in New Issue
Block a user