Skip to content

software/deploy-firmware: skip group addition if group already exists #974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

flokli
Copy link
Contributor

@flokli flokli commented Jul 27, 2025

Running the script on a distribution where the current user is using gid 100 fails, as that group already exists inside the image:

Setting up libgssapi-krb5-2:arm64 (1.20.1-2+deb12u3) ...
Setting up libgdbm-compat4:arm64 (1.23-3) ...
Setting up libperl5.36:arm64 (5.36.0-7+deb12u2) ...
Setting up libcurl3-gnutls:arm64 (7.88.1-10+deb12u12) ...
Setting up perl (5.36.0-7+deb12u2) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.5-0+deb12u2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
+ groupadd --gid 100 caller
groupadd: GID '100' already exists

(nonzero exit code, aborted build)

It's fine to skip group creation in this case, we care about the group to exist, not how it's called.

Running the script on a distribution where the current user is using gid
100 fails, as that group already exists inside the image:

```
Setting up libgssapi-krb5-2:arm64 (1.20.1-2+deb12u3) ...
Setting up libgdbm-compat4:arm64 (1.23-3) ...
Setting up libperl5.36:arm64 (5.36.0-7+deb12u2) ...
Setting up libcurl3-gnutls:arm64 (7.88.1-10+deb12u12) ...
Setting up perl (5.36.0-7+deb12u2) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.5-0+deb12u2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
+ groupadd --gid 100 caller
groupadd: GID '100' already exists
```
(nonzero exit code, aborted build)

It's fine to skip group creation in this case, we care about the group
to exist, not how it's called.
Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@whitequark whitequark added this pull request to the merge queue Jul 28, 2025
Merged via the queue into GlasgowEmbedded:main with commit e4a53fd Jul 28, 2025
12 checks passed
@flokli flokli deleted the deploy-firmware-group branch July 28, 2025 17:20
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