Skip to content

Ubuntu 24.04 base docker image has a default user of 1000 which interferes with pokyuser setup #115

Description

@JonathanCrockett

I built a crops/poky:ubuntu-24.04 image which failed when trying to run tests with a message like this:

annotate-output bash -c 'cd tests; ./runtests.sh crops/poky:ubuntu-24.04'
16:38:26 I: Started bash -c cd tests; ./runtests.sh crops/poky:ubuntu-24.04
16:38:26 O: Running Test run-build.sh
16:38:27 O: sudo: unknown user pokyuser
16:38:27 O: sudo: error initializing audit plugin sudoers_audit
16:38:27 O: Test run-build.sh failed

The reason for the failure I traced to Ubuntu base adding a new user "ubuntu" with uid/gid of 1000. This user was not present in earlier versions. This matches the pokyuser default uid/gid and therefore interferes with the pokyuser configuration.

To fix we need to remove this 'ubuntu' user/group. My first question to the maintainers is where to do it? In this repository where the pokyuser is added or in the yocto-dockerfiles repo so this potentially doesn't affect others that use the same base.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions