Skip to content

sequoia-nixbld-user-migration: Try to recreate all missing users instead of just first contiguous set #13058

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goodspark
Copy link

@goodspark goodspark commented Apr 22, 2025

Testing

Before: Steps 1 - 3 complete and all nix user accounts 1-32 are listed with updated UIDs except _nixbld6 and _nixbld7.
After: Users 6 and 7 get created and my Nix builds no longer fail.

Context

This script mostly worked for me, but the nixbld6 and nixbld7 accounts for me were still missing. Looking at the script, it seems it's because of the until loop in step 2. It assumes only the first contiguous set of users would have disappeared. So 6 and 7 were never restored. This just runs through all 32 users and ensures they exist.

From: #10892 (comment)


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

…ead of just first contiguous set

This script mostly worked for me, but the nixbld6 and nixbld7 accounts for me were still missing. Looking at the script, it seems it's because of the `until` loop in step 2. It assumes only the first contiguous set of users would have disappeared. So 6 and 7 were never restored. This just runs through all 32 users and ensures they exist.

From: NixOS#10892 (comment)
@abathur
Copy link
Member

abathur commented Apr 22, 2025

The reason the script doesn't hardcode 32 is that you can technically customize the number of nixbld. users at install time.

32 is certainly normal, but there are inevitably people out there with 8 or 16 or 40 and so on.

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