package: systemd version: 236-3 Dear systemd team,
please enable the systemd-sysuser.service unit. The rational is that users who want to use this inside their containers/deployments can do so. Attached is a (trivial) patch to enable the unit. It is also documented widely and the fact that it does not work on Debian (and Ubuntu) is slightly surprising. There is no downside (AFAICS), the unit is conditiional on ConditionNeedsUpdate=/etc so it will never run on default Debian systems. I also looked into providing debian specific basic.conf that would re-generate the base-passwd passwd.master (and group) file. However it looks like the systemd-sysusers file format is not expressive enough for this (which is slightly unfortunate). I.e. we have entries like sync:*:4:65534:sync:/bin:/bin/sync which cannot be represented because you cannot specify a different primary gid in the sysusers file (or a login shell). So extra work is required for this but (personally) I would love to this is. Thanks for your consideration! Michael
>From 69af77164ce2eb9bdddfce1c397b9b0c1ae7da55 Mon Sep 17 00:00:00 2001 From: Michael Vogt <m...@ubuntu.com> Date: Tue, 23 Jan 2018 15:55:38 +0100 Subject: [PATCH] Enable sysusers service units This allows users who want to use /usr/lib/sysusers.d/* to use it together with an empty /etc. Note that this PR does not ship any sysuser.d files. It is up to the user to provide those. --- debian/rules | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/rules b/debian/rules index 0389867ec..0cc4b85ec 100755 --- a/debian/rules +++ b/debian/rules @@ -216,7 +216,6 @@ override_dh_install: find debian/install/*/etc/systemd/system/ -type l -delete # FIXME: generate proper sysusers.d/basic.conf for Debian, and add autopkgtest rm -rf debian/install/*/usr/lib/sysusers.d/* - rm -f debian/install/*/lib/systemd/system/*sysusers*.service debian/install/*/lib/systemd/system/*/*sysusers*.service ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES))) dh_install -pudev-udeb -plibudev1-udeb --sourcedir=debian/install/udeb endif -- 2.14.1