Hi Chuck, Thanks for the quick response!
I'm not sure if it's the same issue, ours isn't systemd specific at least. Btw, we're using Kirkstone. Here is an example log of the issue we see when we use USERADD in a recipe to create the user, and set ownership in do_install, while using EXTRA_USERS_PARAMS to manage extra groups and user options, and using useradd-staticids.bbclass too: DEBUG: Executing shell function set_user_group NOTE: company-img: Performing groupadd with [-R /workdir/build_runner_maik/tmp/work/tppg2-tps-linux-gnueabi/company-img/1.0-r0/rootfs --gid 1000 company] NOTE: company-img: group company already exists, not re-creating it NOTE: company-img: Performing useradd with [-R /workdir/build_runner_maik/tmp/work/tppg2-tps-linux-gnueabi/company-img/1.0-r0/rootfs --gid 1000 --system --shell /bin/false --uid 1001 mender] configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator) configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator) useradd: group '1000' does not exist ERROR: company-img: useradd command did not succeed. But then when I check tmp/work/machine-linux-gnueabi/copmany-img/1.0-r0/rootfs/etc/group, no entries for GID 1000 are found. Kind regards, On Fri, Apr 19, 2024 at 5:44 PM Chuck Wolber <[email protected]> wrote: > On Fri, Apr 19, 2024 at 7:29 AM Maik Vermeulen via lists.yoctoproject.org > <[email protected]> wrote: > > %< SNIP %< > > >> I've also tried using the useradd.bbclass in the recipes, which allows us >> to set permissions from within the do_install task, but that started >> causing trouble when we tried to start using useradd-staticids, which we >> need to keep compatibility between software versions using the same files >> from a persistent partition. The useradd.bbclass in combination with the >> central extrausers.bbclass and useradd-staticids.bbclass is messy and >> hasn't resulted in a working build yet, with recipes complaining certain >> groups e.g. aren't available yet. >> > > > You are not very specific about what is going wrong, but it sounds > familiar so it is possible that > I am to blame for not following up on an earlier observation that may > potentially benefit your > situation. > > Take a look at this message and let me know if it sounds familiar. > > https://lists.openembedded.org/g/openembedded-core/topic/88922422#161387 > > If so I can probably submit an RFC patch. > > ..Ch:W.. > > > > -- > *"Perfection must be reached by degrees; she requires the slow hand of > time." - Voltaire* >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62974): https://lists.yoctoproject.org/g/yocto/message/62974 Mute This Topic: https://lists.yoctoproject.org/mt/105618946/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
