Subject: Re: [bug#73767] [PATCH] gnu: system: Privilege programs after creating accounts.
From: Ludovic Courtès <[email-masked]>
To: Dariqq <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Thu, 24 Oct 2024 12:14:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Dariqq,

Dariqq <[email-masked]> skribis:

> Ensure that users and groups are already created when the privileging script
> runs. The order these scripts appear in the folded activation-service depends
> on the order these services are instantiated in the operating-system.
>
> Fixes https://issues.guix.gnu.org/73680.
>
> * gnu/system.scm (operating-system-default-essential-services): Move
> privileged-program-service above account-service.
> (hurd-default-essential-services): Likewise.
>
> Change-Id: I662fb1eff42e4088496fccb76e0efbf2b1da096e

[...]

> I would prefer a solution that also models this dependency to not depend on input order but this might be tricky.

Yes, that would be best.

I applied both patches and took the liberty to squash them: we usually
arrange to have the bug-fix and the test that exhibits the bug in the
same commit, for clarity.

Thanks for the investigation & fix!

Ludo’.