sysusers: avoid creating spurious "nobody" group
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 30 Nov 2021 11:50:19 +0000 (12:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Nov 2021 15:16:25 +0000 (16:16 +0100)
commit4ced52595f3e0367a0f2823be8b7acf6d7b7c2be
tree8834e12a4290794e51b90a6af160bcc0f34a6e53
parent3d170ca5809639b0ca43b2014a9f745df4b32926
sysusers: avoid creating spurious "nobody" group

On distros using Debian's base-passwd, the name of the group with gid 65534 is
nogroup. Currently, systemd-sysusers creates a spurious "nobody" group

  systemd-sysusers[243]: Creating group nobody with gid 996

That's both confusing and redundant, as the nobody user still has primary group
65534 aka nogroup, and the nobody group simply goes completely unused.

So explicitly specify the primary group of the nobody user, and add a line
ensuring that that group exists.

This is not a problem for Debian (or Ubuntu) itself, as they add their own
version of basic.conf in their systemd build logic. But it appears on for
example Yocto/OpenEmbedded.
sysusers.d/basic.conf.in