On Fri, 30 Aug 2024 03:16:34 +0200 Lorenzo Puliti <plore...@disroot.org>
wrote:
Now my problem is that the way installsysusers adds a dependency on systemd
That is not correct, the dependency added by dh_installsysusers is: [1]
systemd | systemd-standalone-sysusers | systemd-sysusers | opensysusers
As the package name suggests, systemd-standalone-sysusers does not
depend on systemd. [2,3]
[1]
https://salsa.debian.org/debian/debhelper/-/blob/c3540cdad2785c79264a9cfd227aa4956460ed69/dh_installsysusers#L104
[2] https://packages.debian.org/sid/systemd-standalone-sysusers
[3]
https://salsa.debian.org/systemd-team/systemd/-/blob/bb6db3edfe40fe1a98cdcc6d2d07a7dac38aefc5/debian/control#L447-461
If adduser could be used as alternative to systemd by
dh_installsysusers that would solve my issue. Even if you don't care
about my use case, the linux world is standardizing more and more on
systemd features so maybe this could be a useful addition to
adduser?
According to my understanding, in order to be used by
dh_installsysusers adduser has to learn to
A) create system user on a target chroot
B) use a sysusers.d[3] file as input
Isn't that what opensysusers already does?
Regards,
--
Gioele Barabucci