On Mon, 30 Oct 2023 17:14:57 +0100 Marc Haber <[email protected]> wrote: > debspawn create sid errors out because the tool cannot find useradd. I > have added adduser manually to "include_pkgs" in osbase.py and this > allows debspawn create sid to finish.
I've done a bit of digging, and I traced this problem back to a change in the way debootstrap works when installing the buildd variant, which is what debspawn uses. In bug 837060, debootstrap stopped installing packages which were Priority: Required but not essential. Specifically, the passwd package is the cause here; failure to install passwd means that the `useradd` command is not available. The reason that installing the adduser package fixed this is that adduser depends on passwd, so it was indirectly pulled in. It's certainly easy enough for us to fix on the debspawn side -- we can just unilaterally add the passwd package -- but it is a bit... strange for us to have to fix. It seems, to me, like this is something we should be able to rely on debootstrap for. I've copied the relevant bug; hopefully we can get some input from the bootstrap folx. (Maybe we should be using the minbase variant instead? Except we're always building packages... should we be using a specific user? I'm not sure!) Sincerely, -- Harlan Lieberman-Berg ~hlieberman

