Hi Marc, have you considered a more declarative approach as provided by systemd-sysusers (8)?
I'm a fan of less manual maintainer scripts code and maybe systemd-sysusers is an answer to that, especially given that we split out the systemd-sysusers binary into a standalone binary which should help facilitate that.
Regards, Michael
OpenPGP_signature
Description: OpenPGP digital signature