Hi,
I have intermittent problems with a recipe that creates a user that is member
of groups that are created by a different recipe. This is the recipe that
creates the groups:
# recipe-a.bb
inherit useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM:${PN} = "--system gpio;--system i2c"
This is the recipe that creates the user:
# recipe-b.bb
inherit useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM:${PN} = "--system mygroup"
GROUPS = "dialout,mygroup,gpio,i2c"
USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/false
--no-user-group --groups ${GROUPS} myuser"
DEPENDS = "recipe-a"
I guess it's also worth pointing out, that I use useradd-static:
USERADDEXTENSION = "useradd-staticids"
USERADD_ERROR_DYNAMIC = "error"
USERADD_UID_TABLES = "files/passwd"
USERADD_GID_TABLES = "files/group"
Every now and then I get and error in recipe_b's do_package_setscene task where
useradd complains that one of the groups provided by recipe_a does not exist.
This appears to be a race condition since most of the times, this works OK. I
was under the impression that specifying DEPENDS="recipe-a" in recipe_b.bb
would be enough to declare this dependency. What am I doing wrong?
Best regards,
Sven
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58680): https://lists.yoctoproject.org/g/yocto/message/58680
Mute This Topic: https://lists.yoctoproject.org/mt/95359282/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-