Skip to content

CI: Handle existing UID/GID when creating container user - #7

Merged
ffrancis123 merged 1 commit into
AudioReach:mainfrom
ffrancis123:group
Aug 27, 2026
Merged

CI: Handle existing UID/GID when creating container user#7
ffrancis123 merged 1 commit into
AudioReach:mainfrom
ffrancis123:group

Conversation

@ffrancis123

Copy link
Copy Markdown
Contributor

Reuse existing group and user entries when the requested GID/UID are already present instead of failing during groupadd or useradd.

Rename existing entries to the requested username when needed and update the account's primary group, home directory, and shell settings. Continue creating the group and user when the requested IDs do not already exist.

Allow the script to work correctly with Ubuntu 24.04 base images that already ship with a default ubuntu user and group using UID/GID 1000.

Reuse existing group and user entries when the requested
GID/UID are already present instead of failing during
groupadd or useradd.

Rename existing entries to the requested username when
needed and update the account's primary group, home
directory, and shell settings. Continue creating the
group and user when the requested IDs do not already
exist.

Allow the script to work correctly with Ubuntu 24.04
base images that already ship with a default ubuntu
user and group using UID/GID 1000.

Signed-off-by: ffrancis <ffrancis@qti.qualcomm.com>
@ffrancis123
ffrancis123 requested review from a team August 27, 2026 15:33
@ffrancis123
ffrancis123 merged commit d97b638 into AudioReach:main Aug 27, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants