Hi,

On Sun, Jul 05, 2020 at 02:52:17PM +0200, Niels Thykier wrote:
> Just to confirm, what debhelper should do with this is:
> 
> On postinst configure:
> 
>     systemd-sysusers <pkg>.conf

Yes, that's all.

> And that is it?  I.e. there is no action to be done for any of the other
> maintscripts?

There might be cornercases where the system user needs to be created in
the preinst.

There's 668 binary packages with a Depends on adduser in sid and per "apt-cache 
rdepends  --no-depends --no-recommends --no-suggests --no-conflicts --no-breaks 
--no-replaces --no-enhances adduser" 34 with a Pre-Depends.

I checked a few of those and found some cases where a Pre-Depends
in declared, but adduser only used in postinst (miredo, transmission) and
a few where adduser is called in preinst (quagga, wims), but it's not really
clear whether that's actually strictly needed.

I'm inclined to suggest to only use it in postinst. In corner cases where
it's needed in preinst it can still be added manually. Or we make it selectable
via an option, not sure.

post* scripts should not be needed due to lack of system user removals
mentioned earlier.

Cheers,
        Moritz

Reply via email to