Bug#888126: [patch] Please enable systemd-sysusers unit

Martin Pitt mpitt at debian.org
Sun Mar 11 22:09:54 GMT 2018


Hello all,

Michael Vogt [2018-02-01  7:39 +0100]:
> just a small update on this. systemd git master has the needed support
> to reproduce the base-passwd passwd and group files now.

Many thanks for driving this! Now that 238 is released and has all the
necessary support, I've done another attempt at this:

  https://salsa.debian.org/systemd-team/systemd/merge_requests/4

This generates the files from base-file's {passwd,group}.master.

I tested this on a Debian sid container in LXC -  pretty cool to see the
container boot with a completely absent /etc! I diffed the original and
sysusers-generated passwd/group/shadow files and they are sufficiently similar.

>    https://github.com/systemd/systemd/blob/master/test/TEST-21-SYSUSERS/test-5.input

Nice that there is an upstream test for this now!

> The only remaining problem is that it generates /sbin/nologin which we
> do not have (we use /usr/sbin/nologin).

As sysusers.d now supports specifying a shell, the above just uses the value
from the *.master file, so this isn't a problem.

Martin



More information about the Pkg-systemd-maintainers mailing list