!DkNkhjPMwKVMKgmGYw:nixos.org

Nix Installer

56 Members
15 Servers

Load older messages


SenderMessageTime
19 Jul 2024
@cole-h:matrix.orgcole-h(Posted)21:31:53
@matthewkenigsberg:matrix.orgMatthew Kenigsberg Looks like cole-h beat me to it and found some issues, but let me know if another test would be helpful next week 23:22:26
20 Jul 2024
@abathur:matrix.orgabathur

Mostly just repeating context from the PR thread into this discussion:

Here's where the assumption that they exist but lack a UID comes from:

https://github.com/NixOS/nix/issues/10948#issuecomment-2201254269

Since it seems like that was either mistaken or maybe Apple's shifted the behavior (perhaps properly deleting the users is their "fix"?), fixing installs that have already been upgraded to sequoia is probably going to be a lot less fun.

14:21:54
@abathur:matrix.orgabathur

Approaches I can imagine so far:

  1. Update migration script to detect some-nixbld-users-but-not-nixbld1 and either

    • Tell these people they'd be better off reinstalling and point to the instructions to do so. Downside of user frustration around repeating builds (but most people who need to reinstall currently seem to suffer this without too much complaining), but it wouldn't entail much more novel work here.
    • Port full user/group creation logic into the migration script, add a routine to delete existing users/groups to simplify the task, fall back on those in this condition. Downside of this is that full logic for the user creation routine (implemented in create_build_user_for_core() in scripts/install-multi-user.sh is scattered over at least 19 functions (maybe more, I haven't walked down the tree) plus some variables, so it'll take a little effort to cleanly extract and leave us with a copy to maintain.
  2. Look at adding a new top-level routine to the multi-user installer itself that can delete existing users/groups (new code) and re-create them (can hopefully re-use existing code), add a flag to install-nix-from-closure to trigger that option. Downsides: needing a more extensive installer update/check cycle to make sure we aren't breaking stuff and that the new deletion routine works, making people do a full installer download to fix this, harder to test and re-use (especially before a proper release) since it isn't a standalone script. Open question as to whether the option should be generic like recreate-build-users (implying some time to make sure this works on linux as well), or more explicitly scoped to save effort.

    I'm not sure if it'd still make sense to have the standalone migration script if its utility were enabling people who learn about it before taking the upgrade to save a little time with the quicker operation of just updating UIDs. If we did retain the separate script there's a risk of confusion around when to run it so it'd probably need to do 1 above but point people at the user-recreation installer flag instead of uninstall instructions.

  3. I'm probably not serious about it due to a variety of issues with getting it implemented and rolled out, but at least in theory Nix itself could probably be able to do some detection and self-healing around broken/missing build users. Downside is probably that we'd still be looking at suggesting uninstall/reinstall to anyone who didn't intentionally or coincidentally end up with a Nix with this capability before they take the upgrade?

15:12:51
23 Jul 2024
@ezzobirbezziou:matrix.orgEzzobir Bezziou joined the room.08:22:09
24 Jul 2024
@redstone-menace:matrix.orgRedstone changed their display name from redstone-menace to Redstone.10:15:29
29 Jul 2024
@abathur:matrix.orgabathur cole-hMatthew Kenigsberg force-pushed to take a swing at this. Untested :) 04:45:00
@cole-h:matrix.orgcole-h
In reply to @abathur:matrix.org
cole-hMatthew Kenigsberg force-pushed to take a swing at this. Untested :)
I don't know if I'll be able to test before our Wednesday call, but I'll be able to test during it hehe
18:50:57
30 Jul 2024
@matthewkenigsberg:matrix.orgMatthew Kenigsberg cole-h: how did you track down the URL for the beta update? I wanted to try version 4 (you linked 3) but I'm not sure where to find it. And can't sign in with my apple id in the VM 22:16:30
@cole-h:matrix.orgcole-hI googled and downloaded it from a random website 😅22:17:01
@cole-h:matrix.orgcole-hOr rather found the URL on a random website22:17:28
@cole-h:matrix.orgcole-hI think the magical search terms are something like "macOS 15 beta package installer"22:18:17
@matthewkenigsberg:matrix.orgMatthew KenigsbergLol nice22:19:18
31 Jul 2024
@maralorn:maralorn.de@maralorn:maralorn.de left the room.13:13:22
@abathur:matrix.orgabathur

Matthew Kenigsberg cole-h already got a tentative response:

We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:04:01
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:04:23
@cole-h:matrix.orgcole-h(Imagining that last line is their response and yours is everything before that)15:07:57
@abathur:matrix.orgabathurthe nested quote was from mine, and everything after that was the devrel's response15:08:34
@cole-h:matrix.orgcole-hIt just shows one whole quote for me (on mobile), but understood15:11:13
@abathur:matrix.orgabathurah15:14:53
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

Abathur: We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

Devrel:
We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:15:24
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

**Abathur: **
We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

Devrel:
We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:15:44
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

Abathur:

We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

Devrel:
We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:16:11
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

Abathur:

We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

Devrel:
We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:16:23
@abathur:matrix.orgabathur *

Matthew Kenigsberg cole-h already got a tentative response:

Abathur:
We're tentatively looking at setting the GID of our group (nixbld) to 331 and the UID of our first build user (_nixbld1) to 331. Default installs create 32 build users, but Nix users can customize this at install time. Since Nix needs one build user for every concurrent build, we're trying to balance between the risk of low UIDs clashing with new macOS users in future updates, and still starting low enough that Nix users with Max/Ultra CPUs configure enough users to put that hardware to good use :)

Devrel:
We had a bit of a discussion, and this is probably the most expedient but the number being tossed around was 350.

I’m getting access to the bug again to see if anyone had any better advice.

15:16:28
@abathur:matrix.orgabathurannotated15:16:46
@matthewkenigsberg:matrix.orgMatthew KenigsbergWell it's nice you're getting a response16:47:17
@jopejoe1:matrix.orgjopejoe1 joined the room.20:25:37
3 Aug 2024
@abathur:matrix.orgabathur Matthew Kenigsberg cole-h pushed on the migration script again; new approach that tries to move the existing users to an Nth unused range before trying to actually place them 06:24:20
8 Aug 2024
@matthewkenigsberg:matrix.orgMatthew KenigsbergSorry haven't gotten around to looking yet. Hoping to get to it soon 04:17:59

Show newer messages


Back to Room ListRoom Version: 9